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

ICodedValueDomain.DeleteCode Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IC > ICodedValueDomain Interface > ICodedValueDomain.DeleteCode Method
ArcGIS Developer Help

ICodedValueDomain.DeleteCode Method

Deletes a code with the specified value.

[Visual Basic .NET]
Public Sub DeleteCode ( _
    ByVal Value As Object _
public void DeleteCode (
    object Value
HRESULT DeleteCode(
Value [in]

Value is a parameter of type VARIANT

Product Availability

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


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


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