ArcObjects Library Reference (GeoDatabase)  

ICursor.FindField Method

The index of the field with the specified name.

[Visual Basic .NET]
Public Function FindField ( _
    ByVal Name As String _
) As Integer
public int FindField (
    string Name
HRESULT FindField(
  BSTR Name,
  long* FieldIndex


Name [in]   Name is a parameter of type BSTR FieldIndex [out, retval]   FieldIndex is a parameter of type long

Product Availability

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


If the specified field cannot be found, this method returns a value of -1.

See Also

ICursor Interface

.NET Related Topics

Joining data | Querying geodatabase tables