ArcGIS Pro 3.7 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 Function GetDefaultValue( _
       Optional ByVal subtype As Subtype _
    ) As Object
    public object GetDefaultValue( 
       Subtype subtype
    )

    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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also