ArcObjects Component Help  (Core)    

IIndex Interface

Provides access to members that return information about the index.

Members

Description
Read-only property Fields The fields collection for this index.
Read-only property IsAscending Indicates if the index is based on ascending order.
Read-only property IsUnique Indicates if the index is unique.
Read-only property Name The name of the index.

CoClasses that implement IIndex

CoClasses and Classes Description
Index ESRI Index Object.

Remarks

This code extract shows a check on whether the index is spatial, or based on the geodatabase object ID. If not, it prints out the list of field names.

Dim j As Long
Dim piffles As IFields
Dim pField As IField
Set pFields = pIndex.Fields
Set pField = pFields.Field(0)
If (pField.Type <> esriFieldTypeGeometry And pField.Type <> esriFieldTypeOID) Then
  For j = 0 To pFields.FieldCount - 1
    Set pField = pFields.Field(j)
    Debug.Print pField.name
  Next
End If

See Also

IField Interface