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

In This Topic
    GetDefaultValue Method (Field)
    In This Topic
    Gets the field's default value at the table level if subtype is not set. Otherwise, gets the field's default value for the specific subtype. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public object GetDefaultValue( 
       Subtype subtype
    )
    Public Function GetDefaultValue( _
       Optional ByVal subtype As Subtype _
    ) As Object

    Parameters

    subtype
    The specific Subtype for the field's default value. This argument is optional. If unset or 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.
    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also