ArcObjects Library Reference  (GeoDatabase)    

IClass.AddIndex Method

Adds an index to this object class.

[Visual Basic 6.0]
Sub AddIndex(
    ByVal Index As IIndex _
)
[Visual Basic .NET]
Public Sub AddIndex ( _
    ByVal Index As IIndex _
)
[C#]
public void AddIndex (
    IIndex Index
);
[Java]
public void addIndex (
    IIndex Index
)
throws
    IOException,
    AutomationException
[C++]
HRESULT AddIndex(
  IIndex* Index
);
[C++]

Parameters

Index [in]

  Index is a parameter of type IIndex

Product Availability

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

Remarks

Prior to adding a new index to a class, an exclusive schema lock should be obtained using the ISchemaLock interface.

See Also

IClass Interface