ArcObjects Library Reference (GeoDatabase)  

IFieldsEdit Interface

Provides access to members that modify a fields collection.

Product Availability

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

Description

The IFieldsEdit interface is used when creating a fields collection. You cannot use it to insert or delete a field from a fields collection belonging to an existing table. To add a field to an existing object class, use the IClass::AddField method.  To remove a field from an existing object class, use the IClass::DeleteField method.

Members

Description
Method AddField Add a field to the fields collection.
Method DeleteAllFields Delete all the fields from the fields collection.
Method DeleteField Delete a field from the fields collection.
Read-only property Field The field at the specified index in the fields collection.
Write-only property Field The field at the specified position.
Read-only property FieldCount The number of fields in the fields collection.
Write-only property FieldCount The Number of fields in this field collection.
Method FindField Finds the index of the named field in the fields collection.
Method FindFieldByAliasName Finds the index of the field with the alias name in the fields collection.

Inherited Interfaces

Interfaces Description
IFields Provides access to members that return information about the fields.

CoClasses that implement IFieldsEdit

CoClasses and Classes Description
Fields ESRI Fields 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 fieldsEdit.FieldCount_2 = 3.

[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 pFieldsEdit.FieldCount_2 = 3.

.NET Snippets

Create FeatureClass | Create Table |

.NET Samples

Calculate area geoprocessing function tool (Code Files: CalculateAreaFunction) | Create a custom raster type (Code Files: ThumbnailBuilder) | Import signposts (Code Files: SignpostUtilities) | Server spatial query COM utility (Code Files: VegUtils_VBNet) | Server spatial query server object extension (Code Files: Extension) | Simple point plug-in data source (Code Files: SimplePointDataset) | Timestamper class extension (Code Files: TimestampClassDescription) |

.NET Related Topics

Building a custom geoprocessing function tool | Creating a plug-in data source | Creating class extensions | Creating feature classes | Creating fields | Creating indexes | Creating relationship classes | Creating tables | Geodatabase API best practices | How to develop the SOE | How to geocode a table of addresses | How to standardize an address | How to work with geoprocessing services | Using the schema creator |