ArcObjects Library Reference (Geoprocessing)  

IGpFieldInfoObject.FindFieldByName Method

Find a field index by name.

[Visual Basic .NET]
Public Function FindFieldByName ( _
    ByVal fieldName As String _
) As Integer
[C#]
public int FindFieldByName (
    string fieldName
);
[C++]
HRESULT FindFieldByName(
  BSTR fieldName,
  long* Index
);
[C++]

Parameters

fieldName [in]   fieldName is a parameter of type BSTR Index [out, retval]   Index is a parameter of type long

Product Availability

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

See Also

IGpFieldInfoObject Interface