ListIndexes
Zusammenfassung
Lists the indexes in a feature class, shapefile, or table in a specified dataset. The Python List returned can be limited with search criteria for index name and will contain index objects.
Syntax
ListIndexes (dataset, {wild_card})
| Parameter | Erläuterung | Datentyp | 
| dataset | The specified feature class or table whose indexes will be returned. | String | 
| wild_card | Der Platzhalter schränkt die zurückgegebenen Ergebnisse ein. Wenn kein Platzhalter angegeben wird, werden alle Werte zurückgegeben. | String | 
| Datentyp | Erläuterung | 
| Index | A Python List containing Index objects is returned. | 
Codebeispiel
ListIndexes example
List index properties.
import arcpy
fc = "C:/Data/roads.shp" 
# Get list of indexes for roads.shp and print properties to interactive window
#
indexes = arcpy.ListIndexes(fc) 
for index in indexes: 
    print  "%-11s : %s" %("Name",index.name)
    print  "%-11s : %s" %("IsAscending",index.isAscending) 
    print  "%-11s : %s" %("IsUnique",index.isUnique)
Verwandte Themen
7/10/2012