This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IC > IClass Interface > IClass.FindField Method (ArcObjects .NET 10.5 SDK) |
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,
long* FieldIndex
);
[C++]
Parameters Name [in] Name is a parameter of type BSTR FieldIndex [out, retval] FieldIndex is a parameter of type long
If FindField returns -1, the Field could not be found in the Fields collection.
Developers working with SDE should be aware of qualified field names and their impact on calls to FindField. For more information, see the IFields2 interface.