This document is archived and information here might be outdated.  Recommended version.


IWorkspaceDomains3.AlterDomainWithName Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

IWorkspaceDomains3.AlterDomainWithName Method

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

Product Availability

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

Remarks

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.

See Also

IWorkspaceDomains3 Interface