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. | |
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. |
IWorkspaceDomains2.AlterDomain Method
Alters an existing domain in the workspace.
Public Sub AlterDomain ( _
ByVal Domain As IDomain _
)
public void AlterDomain (
IDomain Domain
);
Remarks
The AlterDomainmethod allows the user to take an existing domain and modify it, and then call AlterDomainpassing it as an argument. Alternatively, the user may create a new instance of a domain with the same name, owner, and field type as an existing domain. The existing domain would be replaced with the new domain. The identifier of the new domain will be modified to match that of the existing domain that is being altered.
The main use of AlterDomain is for modifying the range or coded values associated with the domain. Please note that the renaming of a Domain is only permitted through the use of the IWorkspaceDomains3.AlterDomainWithName method.
Inherited Interfaces
Interfaces | Description |
---|---|
IWorkspaceDomains | Provides access to members that return information about domains and allows you to add or delete domains. |
Classes that implement IWorkspaceDomains2
Classes | Description |
---|---|
Workspace | Workspace Object. |
Remarks
The IWorkspaceDomains2interface 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 disassociate it with all fields, delete the domain, create a new (and modified) domain, and reassociate it with the appropriate fields.