ArcObjects Library Reference (GeoDatabase)  

IWorkspaceDomains2 Interface

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Method AddDomain Adds the given domain to the workspace.
Method AlterDomain Alters an existing domain in the workspace.
Read-only property CanDeleteDomain Indicates if the user can delete the domain.
Method DeleteDomain Deletes the given domain from the workspace.
Read-only property DomainByName The domain with the given name from the workspace.
Read-only property Domains All the domains in the workspace.
Read-only property DomainsByFieldType The domain with the given name from the workspace.

Inherited Interfaces

Interfaces Description
IWorkspaceDomains Provides access to members that return information about domains and allows you to add or delete domains.

CoClasses that implement IWorkspaceDomains2

CoClasses and Classes Description
Sde4Workspace (esriDataSourcesGDB) ESRI SDE (4.x) Feature Database.
VersionedWorkspace VersionedWorkspace Object.
Workspace Workspace Object.

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 disassociated it with all fields, delete the domain, create a new (and modified) domain, and reassociated it with the appropriate fields. Note that schema locks are acquired when altering a domain.

See Also

IWorkspaceDomains Interface | IDomain Interface