ArcGIS Pro 3.4 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.
Version

GetDefaultValue Method (FieldDescription)
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
)

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