ArcObjects Library Reference  (GeoDatabase)    

IClass.FindField Method

The index of the field with the specified name.

[Visual Basic 6.0]
Function FindField(
    ByVal Name As String _
) As Long
[Visual Basic .NET]
Public Function FindField ( _
    ByVal Name As String _
) As Integer
[C#]
public int FindField (
    string Name
);
[Java]
public int findField (
    String Name
)
throws
    IOException,
    AutomationException
[C++]
HRESULT FindField(
  BSTR Name,
  long* FieldIndex
);
[C++]

Parameters

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.

Remarks

If FindField returns -1, the Field could not be found in the Fields collection.

See Also

IClass Interface

 


Feedback Send feedback on this page