ArcObjects Library Reference  (GeoDatabase)    

IClass.Indexes Property

The indexes collection for this object class.

[Visual Basic 6.0]
Property Indexes As IIndexes
[Visual Basic .NET]
Public ReadOnly Property Indexes As IIndexes
[C#]
public IIndexes Indexes {get;}
[Java]
public IIndexes getIndexes()
throws
    IOException,
    AutomationException
[C++]
HRESULT get_Indexes(
  IIndexes** Indexes
);
[C++]

Parameters

Indexes [out, retval]

  Indexes is a parameter of type IIndexes

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
[C#]

    public void IClass__get_Indexes(ITable table)
    {
        //This code finds the number of indexes on a object class.
        IIndexes indexes = table.Indexes;
        //cast to Dataset to get the tables BrowseName (strictly for output)
        IDataset dataset = (IDataset)table;
        Console.WriteLine("The table {0} an index count of {1}.", dataset.BrowseName, indexes.IndexCount);
    }

[Visual Basic 6.0]

This code finds the number of indexes on a object class.

Dim pIndexes As IIndexes
Set pIndexes = pTable.Indexes
MsgBox "There are " & pIndexes.IndexCount & " indexes"

See Also

IClass Interface

 


Feedback Send feedback on this page