This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IW > IWorkspaceDomains3 Interface > IWorkspaceDomains3.AlterDomainWithName Method (ArcObjects .NET 10.4 SDK) |
Alters an existing domain in the workspace.
[Visual Basic .NET] Public Sub AlterDomainWithName ( _ ByVal Domain As IDomain, _ ByVal oldDomainName As String _ )
[C#] public void AlterDomainWithName ( IDomain Domain, string oldDomainName );
[C++]
HRESULT AlterDomainWithName(
IDomain* Domain,
BSTR oldDomainName
);
[C++]
Parameters Domain [in]
Domain is a parameter of type IDomain oldDomainName [in] oldDomainName is a parameter of type BSTR
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.