ArcObjects Library Reference (GeoDatabase)  

IFieldEdit Interface

Provides access to members that edit the field properties. Note: the IFieldEdit interface has been superseded byIFieldEdit2. Please consider using the more recent version.

Product Availability

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

Description

The IFieldEdit interface is used when creating new fields. You should not use it to modify fields, for that purpose use IClassSchemaEdit. In general, when modifying fields, the restrictions that apply in ArcCatalog also apply in ArcObjects; for example, you cannot change the name or type of a field.

Members

Description
Read-only property AliasName The alias name of the field.
Write-only property AliasName The alias name of the field.
Method CheckValue Indicates if the value is valid given the field definition.
Read-only property DefaultValue The default value of the field.
Write-only property DefaultValue The default value of the field.
Read-only property Domain The default domain of the field.
Write-only property Domain The default domain of the field.
Write-only property DomainFixed Indicates if the field's domain cannot be modified.
Read-only property DomainFixed Indicates if the field's domain is fixed.
Write-only property Editable Indicates if the field can be edited. This should always be set to true.
Read-only property Editable Indicates if the field is editable.
Read-only property GeometryDef The geometry definition for the field if IsGeometry is TRUE.
Write-only property GeometryDef The geometry definition if IsGeometry is TRUE.
Write-only property IsNullable Indicates if field values can be null.
Read-only property IsNullable Indicates if the field can contain null values.
Write-only property Length The maximum length, in bytes, for field values.
Read-only property Length The maximum length, in bytes, for values described by the field.
Read-only property Name The name of the field.
Write-only property Name The name of the field.
Read-only property Precision The precision for field values.
Write-only property Precision The precision for field values.
Read-only property Required Indicates if the field is required.
Write-only property Required Indicates if the field is required.
Read-only property Scale The scale for field values.
Write-only property Scale The scale for field values.
Write-only property Type The type for the field.
Read-only property Type The type of the field.
Read-only property VarType The VARTYPE of the field (e.g. VT_I4).

Inherited Interfaces

Interfaces Description
IField Provides access to members that return information about the field.

CoClasses that implement IFieldEdit

CoClasses and Classes Description
Field ESRI Field object.
[C#]

When using C# (and other .NET languages) you must append an "_2" to the property you want to set on this interface. For example fieldEdit.Name_2 = "NewFieldName".

[Visual Basic .NET]

When using VB.NET (and other .NET languages) you must append an "_2" to the property you want to set on this interface. For example fieldEdit.Name_2 = "NewFieldName".