Interface IWorkspaceDomains3

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

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

[Guid("7FD9B83C-76C0-4998-B9D3-AFE9600B5D36")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IWorkspaceDomains3 : IWorkspaceDomains2, IWorkspaceDomains

Remarks

The IWorkspaceDomains3 interface was added to enable users to rename existing domains. Without this interface, in order to rename an existing domain, it would first be necessary to disassociate it with all fields, delete the domain, create a new domain with the new name and reassociate it with the appropriate fields. Note that a schema locks is recommended when renaming a domain.

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)

void AlterDomain(IDomain Domain)

Parameters

Domain IDomain

AlterDomainWithName(IDomain, string)

Alters an existing domain in the workspace.

void AlterDomainWithName(IDomain Domain, string oldDomainName)

Parameters

Domain IDomain
oldDomainName string

Remarks

The AlterDomainWithName method takes as input a Domain object whose Name property is set to the new name and the old domain name.  The old domain name is used to reference to the domain that will be renamed.  All references to the Domain will be updated to use the new name, it is not neccessary to account for this.

DeleteDomain(string)

void DeleteDomain(string DomainName)

Parameters

DomainName string