ArcObjects Library Reference (GeoDatabase)  

IField.Required Property

Indicates if the field is required.

[Visual Basic .NET]
Public ReadOnly Property Required As Boolean
[C#]
public bool Required {get;}
[C++]
HRESULT get_Required(
  VARIANT_BOOL* IsRequired
);
[C++]

Parameters

IsRequired [out, retval]   IsRequired is a parameter of type VARIANT_BOOL

Product Availability

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

Description

All tables and feature classes have a set of required fields that are necessary to record the state of any particular object in the table or feature class. These required fields are automatically created when you create a new feature class or table, and cannot be deleted. Required fields may also have required properties such as its domain property. You cannot modify the required property of a required field.

For example, in a simple feature class, OID and Shape are required fields. They do have properties such as their alias and geometry type that you can modify, but these fields cannot be deleted.

See Also

IField Interface