ArcObjects Library Reference  (Carto)    

ILayerFields.FindField Method

Returns the index of the field with the specified name.

[Visual Basic 6.0]
Function FindField(
    ByVal FieldName As String _
) As Long
[Visual Basic .NET]
Public Function FindField ( _
    ByVal FieldName As String _
) As Integer
public int FindField (
    string FieldName
public int findField (
    String FieldName
HRESULT FindField(
  BSTR FieldName,
  long* Index


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

ILayerFields Interface