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


ICursor.FindField Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IC > ICursor Interface > ICursor.FindField Method
ArcGIS Developer Help

ICursor.FindField Method

The index of the field with the specified name.

[Visual Basic .NET]
Public Function FindField ( _
    ByVal Name As String _
) As Integer
[C#]
public int FindField (
    string Name
);
[C++]
HRESULT FindField(
  BSTR Name
);
[C++]
Parameters
Name [in]

Name is a parameter of type BSTR

Product Availability

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

Remarks

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

See Also

ICursor Interface