Parameters
- name
- The name of the description.
- fieldType
- The ArcGIS.Core.Data.FieldType of the description.
- codedValuePairs
- The coded value pairs of the description.
Exception | Description |
---|---|
System.ArgumentException | name is invalid. fieldType is invalid. The only valid types are ArcGIS.Core.Data.FieldType.String, ArcGIS.Core.Data.FieldType.SmallInteger, ArcGIS.Core.Data.FieldType.Integer, ArcGIS.Core.Data.FieldType.Single, ArcGIS.Core.Data.FieldType.Double, and ArcGIS.Core.Data.FieldType.Date. -or- codedValuePairs must contain at least one coded value pair. -or- codedValuePairs contains invalid codes or values. The expected type for ArcGIS.Core.Data.FieldType.Date is System.DateTime. The expected type for ArcGIS.Core.Data.FieldType.SmallInteger and ArcGIS.Core.Data.FieldType.Integer is an integer. The expected type for ArcGIS.Core.Data.FieldType.Single and ArcGIS.Core.Data.FieldType.Double is a float. |
System.ArgumentNullException | codedValuePairs is null. |
System.ArgumentOutOfRangeException | The System.DateTime code is representing a year earlier than the year 100 AD. |
Target Platforms: Windows 11, Windows 10