Interface IWorkspaceDomains2

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

Provides access to members that allow you to alter a domain.

[Guid("56A5E6D4-01C6-11D4-A057-00C04F6BDD84")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IWorkspaceDomains2 : IWorkspaceDomains

Remarks

The IWorkspaceDomains2 interface was added to enable users to modify an existing domain. Without this interface, in order to modify an existing domain, it would first be necessary to disassociate it with all fields, delete the domain, create a new (and modified) domain, and reassociate it with the appropriate fields.

Properties

CanDeleteDomain[string]

bool CanDeleteDomain[string DomainName] { get; }

Parameters

DomainName string

Property Value

bool

DomainByName[string]

IDomain DomainByName[string DomainName] { get; }

Parameters

DomainName string

Property Value

IDomain

Domains

IEnumDomain Domains { get; }

Property Value

IEnumDomain

DomainsByFieldType[esriFieldType]

IEnumDomain DomainsByFieldType[esriFieldType Type] { get; }

Parameters

Type esriFieldType

Property Value

IEnumDomain

Methods

AddDomain(IDomain)

int AddDomain(IDomain Domain)

Parameters

Domain IDomain

Returns

int

AlterDomain(IDomain)

Alters an existing domain in the workspace.

void AlterDomain(IDomain Domain)

Parameters

Domain IDomain

Remarks

The AlterDomain method allows the user to take an existing domain and modify it, and then call AlterDomain passing it as an argument. Alternatively, the user may create a new instance of a domain with the same name, owner, and field type as an existing domain. The existing domain would be replaced with the new domain. The identifier of the new domain will be modified to match that of the existing domain that is being altered.

The main use of AlterDomain is for modifying the range or coded values associated with the domain.  Please note that the renaming of a Domain is only permitted through the use of the IWorkspaceDomains3.AlterDomainWithName method.

DeleteDomain(string)

void DeleteDomain(string DomainName)

Parameters

DomainName string