ArcObjects Library Reference (GeoDatabase)  

IFields Interface

Provides access to members that return information about the fields. Note: the IFields interface has been superseded byIFields2. 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

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.

CoClasses that implement IFields

CoClasses and 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 ICursorthey 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 Snippets

Write Blob Field Contents To File | Create FeatureClass | Create Table | Write Blob File Contents To Table Row Field |

.NET Samples

ArcGIS GPConsole (Code Files: Program) | Calculate area geoprocessing function tool (Code Files: CalculateAreaFunction) | Closest facility application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: ClosestFacility_GISServerAPIClass) | Convert part to feature command (Code Files: ConvertPart) | Create a custom raster function (Code Files: WatermarkFunction) | Create a custom raster type (Code Files: ThumbnailBuilder) | Curve conversion add-in (Code Files: CurveConversionDockWin) | Find an address (Code Files: AddressForm) | Find the closest intersection from a point (Code Files: FindClosestIntersection) | Implementing extended criteria for some predefined schematic rules (Code Files: ExpandLinks) | Import signposts (Code Files: ImportDynamapSignsFunction ImportMultiNetSignsFunction ImportNavStreetsSignsFunction) | Migrating from VB6 to VB .NET for ArcGIS 10 (Code Files: ButtonAddIn clscopy_table_sel clsCopyTableSelection) | Network Analyst Engine application (Code Files: frmMain) | Retrieve a color ramp from the SymbologyControl (Code Files: SymbolForm) | Route application using the NAServer extension in ArcGIS Server via a GIS client (Code Files: Route_GISClientClass) | Route application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: Route_GISServerAPIClass) | Server spatial query COM utility (Code Files: VegUtils_VBNet) | Server spatial query server object extension (Code Files: Configurator Extension) | Service area application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: ServiceArea_GISServerAPIClass) | Simple point plug-in data source (Code Files: SimplePointCursor SimplePointDataset) | Single line address geocoding (Code Files: SingleLineGeocodingForm) | StreetMap routing (Code Files: RoutingForm) | Time Series Graph tool add-in (Code Files: TimeSeriesGraph) | Timestamper class extension (Code Files: TimestampClassDescription TimestampClassExtension TimestampPropertyPage) | ViperPin tool (Code Files: ViperPinForm) |

.NET Related Topics

Assigning domains to fields | Building a custom geoprocessing function tool | Converting simple data | Copying or loading data while preserving GlobalID values | Creating a plug-in data source | Creating an address locator | Creating annotation and dimension feature classes | Creating class extensions | Creating feature classes | Creating fields | Creating indexes | Creating relationship classes | Creating tables | Geodatabase | Geodatabase API best practices | Geoprocessing services | How to create SOE property pages | How to define a renderer for your layer | How to develop the SOE | How to find the address closest to a point using reverse geocoding | How to geocode a single address | How to geocode a table of addresses | How to standardize an address | How to work with geocoding properties | Listing fields | Migrating VB6 to VB.NET for ArcGIS 10 | Working with fields | Working with indexes |