IWorkspaceDomains3 Interface

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

Members

Name Description
Method AddDomain Adds the given domain to the workspace.
Method AlterDomain Alters an existing domain in the workspace.
Method AlterDomainWithName 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.

IWorkspaceDomains3.AlterDomainWithName Method

Alters an existing domain in the workspace.

Public Sub AlterDomainWithName ( _
    ByVal Domain As IDomain, _
    ByVal oldDomainName As String _
)
public void AlterDomainWithName (
    IDomain Domain,
    string oldDomainName
);

Remarks

The AlterDomainWithNamemethod 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.

Inherited Interfaces

Interfaces Description
IWorkspaceDomains2 Provides access to members that allow you to alter a domain.
IWorkspaceDomains Provides access to members that return information about domains and allows you to add or delete domains.

Classes that implement IWorkspaceDomains3

Classes Description
Workspace Workspace Object.

Remarks

The IWorkspaceDomains3interface 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.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.