public void Modify( DomainDescription domainDescription )
Public Overloads Sub Modify( _ ByVal domainDescription As DomainDescription _ )
Parameters
- domainDescription
- Indicates the ArcGIS.Core.Data.Domain to be modified.
public void Modify( DomainDescription domainDescription )
Public Overloads Sub Modify( _ ByVal domainDescription As DomainDescription _ )
Exception | Description |
---|---|
System.ArgumentNullException | domainDescription is null. |
public void ModifyDomain(Geodatabase geodatabase, string codedValueDomainName = "Pipe") { SchemaBuilder schemaBuilder = new SchemaBuilder(geodatabase); CodedValueDomain codedValueDomain = geodatabase.GetDomains().First(f => f.GetName().Equals(codedValueDomainName)) as CodedValueDomain; CodedValueDomainDescription codedValueDomainDescription = new CodedValueDomainDescription(codedValueDomain); // Update domain description codedValueDomainDescription.Description = "Water Pipe Domain"; // Adding code/value pair codedValueDomainDescription.CodedValuePairs.Add("C", "Copper"); schemaBuilder.Modify(codedValueDomainDescription); // To modify the orders of coded value domain // schemaBuilder.Modify(codedValueDomainDescription,SortBy.Name,SortOrder.Ascending); schemaBuilder.Build(); }
Target Platforms: Windows 11, Windows 10