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


IGpFieldInfoObject.FindFieldByName Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geoprocessing > ESRI.ArcGIS.Geoprocessing > Interfaces > IG > IGpFieldInfoObject Interface > IGpFieldInfoObject.FindFieldByName Method
ArcGIS Developer Help

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
);
[C++]
Parameters
FieldName [in]

FieldName is a parameter of type BSTR

Product Availability

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

See Also

IGpFieldInfoObject Interface