Interface ICodedValueDomain
- Namespace
- ESRI.ArcGIS.Geodatabase
- Assembly
- ESRI.Server.Geodatabase.dll
Provides access to members that return and modify coded value domain values.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("FCB6BF33-475D-11D2-9932-0000F80372B4")]
public interface ICodedValueDomain
Properties
CodeCount
The number of codes for the associated attribute.
int CodeCount { get; }
Property Value
Name[int]
The code name for the specified code index.
string Name[int Index] { get; }
Parameters
Indexint
Property Value
Remarks
This property returns the name of valid coded value for the ith coded value in the coded value domain, where i is the index of the coded value as a Long . The name is returned as a String .
Value[int]
The value for the specified code index.
object Value[int Index] { get; }
Parameters
Indexint
Property Value
Remarks
This property returns the coded value for the specified position in the coded value domain. The type of object returned depends on the type of field associated with the domain; for example, if the domain applies to Text fields, the value returned will be a string. The IDomain.FieldType property can be used to determine the type of field associated with a domain.
Methods
AddCode(object, string)
Adds a (value, name) code.
void AddCode(object Value, string Name)
Parameters
Remarks
The AddCode method adds a new coded value to the coded value domain. AddCode requires a value for the coded value as a Variant, and the name of the coded value, which is a user friendly description for that coded value, as a String. The value supplied for the variant parameter must be of the correct type for the domain (e.g., Numeric values for a numeric domain, string values for a string domain).
If AddCode is called on a domain that is already created, the IWorkspaceDomains2::AlterDomain method must be called to persist the change.
DeleteCode(object)
Deletes a code with the specified value.
void DeleteCode(object Value)
Parameters
Valueobject
Remarks
If DeleteCode is called on a domain that is already created, the IWorkspaceDomains2::AlterDomain method must be called to persist the change.