index_of_name method

index_of_name

Returns the zero-based index of the specified key in the collection.

Returns

The zero-based index of key, if key is found in the collection; otherwise, -1.

def index_of_name(self, name):
    ...
ParameterTypeDescription
namestrThe name to locate in the collection.

See Also