ListIndexes
Resumen
The ListIndexes function returns a list of the indexes in a feature class, shapefile, or table in a specified dataset.
Sintaxis
ListIndexes(dataset, {wild_card})
| El parámetro | Explicación | Tipo de datos |
|---|---|---|
|
dataset |
The specified feature class or table with the indexes that will be returned. |
String |
|
wild_card |
Limits the results returned. If a value is not specified, all values are returned. The wildcard is not case sensitive. Use an asterisk (*) to represent zero or more characters. For example, |
String |
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
Index |
A list containing |
Muestra de código
ListIndexes example
List index properties.
import arcpy
featureclass = "c:/data/roads.shp"
# Get list of indexes for roads.shp and print properties
indexes = arcpy.ListIndexes(featureclass)
for index in indexes:
print("Name : {0}".format(index.name))
print("IsAscending : {0}".format(index.isAscending))
print("IsUnique : {0}".format(index.isUnique))