ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data.DDL Namespace / FieldDescription Class / GetDefaultValue Method
The specific subtype code for the ArcGIS.Core.Data.Field's default value. This argument is optional. If it is not set or is set to null, the field's default value at the table level is returned.

In This Topic
    GetDefaultValue Method (FieldDescription)
    In This Topic
    Gets the default value of the ArcGIS.Core.Data.Field at the table level if subtypeCode is not specified. Otherwise, gets the default value for the specific subtype code.
    Syntax
    public object GetDefaultValue( 
       Nullable<int> subtypeCode
    )
    Public Function GetDefaultValue( _
       Optional ByVal subtypeCode As Nullable(Of Integer) _
    ) As Object

    Parameters

    subtypeCode
    The specific subtype code for the ArcGIS.Core.Data.Field's default value. This argument is optional. If it is not set or is set to null, the field's default value at the table level is returned.

    Return Value

    The default value if one is assigned. Otherwise, null is returned.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also