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


IIndexes.FindIndex Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > II > IIndexes Interface > IIndexes.FindIndex Method
ArcGIS Developer Help

IIndexes.FindIndex Method

Finds the position of the named index in the indexes collection.

[Visual Basic .NET]
Public Sub FindIndex ( _
    ByVal Name As String, _
    ByRef pos As Integer _
)
[C#]
public void FindIndex (
    string Name,
    ref int pos
);
[C++]
HRESULT FindIndex(
  BSTR Name,
  System.Int32* pos
);
[C++]
Parameters
Name [in]

Name is a parameter of type BSTR pos [out]
pos is a parameter of type long*

Product Availability

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

Errors Returned

If no index is found, pos returns -1.

See Also

IIndexes Interface