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


IFields Interface (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IFields Interface
ArcGIS Developer Help

IFields Interface

Provides access to members that return information about the fields. Note: the IFields interface has been superseded by IFields2. Please consider using the more recent version.

Product Availability

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

Description

The Fields object represents a collection of columns in a table. The term field is synonymous with column. Each table in a database has an ordered collection of fields, there is always at least one field in a table. The ordered collection behaves like a list, so it is possible to access individual fields by a numbered position (or index) in the list.

Members

Name Description
Read-only property Field The field at the specified index in the fields collection.
Read-only property FieldCount The number of fields in the fields 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.

Classes that implement IFields

Classes Description
Fields Esri Fields object.

Remarks

The IFields interface provides information about a Fields collection and also provides access to individual fields. When using IFields::FindField, remember that there are equivalent methods on IClass and ICursor�they are shortcuts which save you having to get the Fields collection.

When programming with ArcMap, there is a distinction between IFields and two other interfaces, ILayerFields and ITableFields. ILayerFields is particular to an ArcMap layer, so for example, an alias name belongs to the field as defined in that layer rather than being stored with the underlying table.

.NET Samples

Time Series Graph tool add-in Find the closest intersection from a point Create a custom raster function Create a custom raster type Create a custom raster type from the ground up for DMCII data Find an address Calculate area geoprocessing function tool ArcGIS Network Analyst extension Engine application Create an NDVI custom raster function Utility wizard for basic schematic datasets configuration Implementing extended criteria for some predefined schematic rules Reducing schematic nodes and computing a cumulative attribute via a schematic rule Single line address geocoding StreetMap routing Retrieve a color ramp from the SymbologyControl Timestamper class extension Timestamper class extension Timestamper class extension ViperPin tool