This document is archived and information here might be outdated.  Recommended version.


ISubtypes.DefaultValue Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IS > ISubtypes Interface > ISubtypes.DefaultValue Property
ArcGIS Developer Help

ISubtypes.DefaultValue Property

The default value for the associated attribute.

[Visual Basic .NET]
Public Function get_DefaultValue ( _
    ByVal SubtypeCode As Integer, _
    ByVal FieldName As String _
) As Object
[Visual Basic .NET]
Public Sub set_DefaultValue ( _
    ByVal SubtypeCode As Integer, _
    ByVal FieldName As String, _
    ByVal Value As Object _
)
[C#]
public object get_DefaultValue (
    int SubtypeCode,
    string FieldName
);
[C#]
public void set_DefaultValue (
    int SubtypeCode,
    string FieldName,
    object Value
);
[C++]
HRESULT get_DefaultValue(
  long SubtypeCode,
  BSTR FieldName,
  Variant* Value
);
[C++]
HRESULT put_DefaultValue(
  long SubtypeCode,
  BSTR FieldName,
  VARIANT Value
);
[C++]
Parameters
SubtypeCode [in]

SubtypeCode is a parameter of type long FieldName [in]
FieldName is a parameter of type BSTR Value [out, retval]
Value is a parameter of type VARIANT* SubtypeCode [in]
SubtypeCode is a parameter of type long FieldName [in]
FieldName is a parameter of type BSTR Value [in]
Value is a parameter of type VARIANT

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

DefaultValue property returns the default value for the given subtype.

Functional License Check

If your application/site is not appropriately licensed, DefaultValue can return an error of FDO_E_NO_SCHEMA_LICENSE.

Remarks

This property return the default value for a particular field associated with a subtype. It requires the subtype code as a Long and the field name as a String . You can use the IField::Type property to determine the type of field that you are passing into the function so you will know what data type is being returned.

See Also

ISubtypes Interface