ArcObjects Library Reference (GeoDatabase)  

IWorkspaceDomains2.AlterDomain Method

Alters an existing domain in the workspace.

[Visual Basic .NET]
Public Sub AlterDomain ( _
    ByVal Domain As IDomain _
)
[C#]
public void AlterDomain (
    IDomain Domain
);
[C++]
HRESULT AlterDomain(
  IDomain* Domain
);
[C++]

Parameters

Domain [in]

  Domain is a parameter of type IDomain

Product Availability

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

Remarks

The AlterDomain method allows the user to either 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 not permitted.

See Also

IWorkspaceDomains2 Interface