ArcGIS Pro 2.8 API Reference Guide
AttributeDef Constructor(String,String,FieldType,Object,Boolean,Boolean)

ArcGIS.Desktop.Editing.Templates Namespace > AttributeDef Class > AttributeDef Constructor : AttributeDef Constructor(String,String,FieldType,Object,Boolean,Boolean)
a unique identifier
a localizable AttributeDef name that may appear in a GUI
the attribute type
the default attribute value if otherwise unspecified
true if the value can be null, false otherwise
true if the value must be in meters, false otherwise
Creates an AttributeDef
Syntax
Public Function New( _
   ByVal id As String, _
   ByVal name As String, _
   ByVal type As FieldType, _
   ByVal defaultValue As Object, _
   ByVal isNullable As Boolean, _
   Optional ByVal unitAsMeters As Boolean _
)

Parameters

id
a unique identifier
name
a localizable AttributeDef name that may appear in a GUI
type
the attribute type
defaultValue
the default attribute value if otherwise unspecified
isNullable
true if the value can be null, false otherwise
unitAsMeters
true if the value must be in meters, false otherwise
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

AttributeDef Class
AttributeDef Members
Overload List