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


IFieldEdit.Domain Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

IFieldEdit.Domain Property

The default domain of the field.

[Visual Basic .NET]
Public WriteOnly Property Domain_2
[C#]
public void Domain_2 {set;}
[C++]
HRESULT putref_Domain(
  IDomain* 
);
[C++]

Parameters [in]
is a parameter of type IDomain

Product Availability

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

Remarks

This is only supported on fields from object classes and feature classes that are registered with the geodatabase; Personal, File or ArcSDE. 

This is not supported for shapefiles, coverages, or other data sources.

You can register a table within the geodatabase to become an object class by right-clicking on the table in ArcCatalog and clicking on "Register with Geodatabase".

The IFieldEdit::Domain method is used to associate domains when creating new fields. You should not use it to modify existing fields, for that purpose use IClassSchemaEdit::AlterDomain or ISubtypes::Domain.

See Also

IFieldEdit Interface