ArcObjects Library Reference (GeoDatabase)  

ICodedValueDomain.DeleteCode Method

Deletes a code with the specified value.

[Visual Basic .NET]
Public Sub DeleteCode ( _
    ByVal Value As Object _
)
[C#]
public void DeleteCode (
    object Value
);
[C++]
HRESULT DeleteCode(
  VARIANT Value
);
[C++]

Parameters

Value [in]   Value is a parameter of type VARIANT

Product Availability

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

Description

DeleteCode function removes the coded value from this domain. The parameter represents the value of the coded value to be removed, not the description.

Remarks

If DeleteCode is called on a domain that is already created, the IWorkspaceDomains2::AlterDomain method must be called to persist the change.

See Also

ICodedValueDomain Interface