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


IObjectClassDescription.RequiredFields Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IObjectClassDescription.RequiredFields Property

The descriptions of the set of required fields for this class.

[Visual Basic .NET]
Public ReadOnly Property RequiredFields As IFields
[C#]
public IFields RequiredFields {get;}
[C++]
HRESULT get_RequiredFields(
  IFields** fieldDescription
);
[C++]

Parameters fieldDescription [out, retval]
fieldDescription is a parameter of type IFields

Product Availability

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

Remarks

When implementing the RequiredFields property, it is necessary include an ObjectID field, a geometry field (if a FeatureClass), subtype field, ancillary role or enabled field (if a NetworkFeature type) in addition any other attributes.

See Also

IObjectClassDescription Interface | IFeatureClassDescription Interface | IFields Interface | IClassSchemaEdit Interface

.NET Snippets

Create Table | Create FeatureClass

.NET Related Topics

Creating a plug-in data source | Creating annotation and dimension feature classes | Creating class extensions | Creating feature classes | Creating fields | Creating tables