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

IWorkspaceDomains2.AlterDomain Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IW > IWorkspaceDomains2 Interface > IWorkspaceDomains2.AlterDomain Method
ArcGIS Developer Help

IWorkspaceDomains2.AlterDomain Method

Alters an existing domain in the workspace.

[Visual Basic .NET]
Public Sub AlterDomain ( _
    ByVal Domain As IDomain _
public void AlterDomain (
    IDomain Domain
HRESULT AlterDomain(
  IDomain* Domain
Domain [in]

Domain is a parameter of type IDomain*

Product Availability

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


The AlterDomain method allows the user to take an existing domain and modify it, and then call AlterDomain passing 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.

See Also

IWorkspaceDomains2 Interface