Provides access to members that allow you to alter a domain.
Members
Name | Description | |
---|---|---|
AddDomain | Adds the given domain to the workspace. | |
AlterDomain | Alters an existing domain in the workspace. | |
AlterDomainWithName | Alters an existing domain in the workspace. | |
CanDeleteDomain | Indicates if the user can delete the domain. | |
DeleteDomain | Deletes the given domain from the workspace. | |
DomainByName | The domain with the given name from the workspace. | |
Domains | All the domains in the workspace. | |
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.