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
DomainNamestring
Property Value
DomainByName[string]
IDomain DomainByName[string DomainName] { get; }
Parameters
DomainNamestring
Property Value
Domains
IEnumDomain Domains { get; }
Property Value
DomainsByFieldType[esriFieldType]
IEnumDomain DomainsByFieldType[esriFieldType Type] { get; }
Parameters
TypeesriFieldType
Property Value
Methods
AddDomain(IDomain)
int AddDomain(IDomain Domain)
Parameters
DomainIDomain
Returns
AlterDomain(IDomain)
void AlterDomain(IDomain Domain)
Parameters
DomainIDomain
AlterDomainWithName(IDomain, string)
Alters an existing domain in the workspace.
void AlterDomainWithName(IDomain Domain, string oldDomainName)
Parameters
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
DomainNamestring