ArcObjects Library Reference (GeoDatabase)  

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

.NET Related Topics

Creating subtypes