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

IClass.AddIndex Method (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IC > IClass Interface > IClass.AddIndex Method
ArcGIS Developer Help

IClass.AddIndex Method

Adds an index to this object class.

[Visual Basic .NET]
Public Sub AddIndex ( _
    ByVal Index As IIndex _
public void AddIndex (
    IIndex Index
  IIndex* Index
Index [in]

Index is a parameter of type IIndex*

Product Availability

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


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

See Also

IClass Interface