Export (0) Print
Expand All

IndexOf Method

IIS 7.0

Determines the index of an element in the collection.

Namespace:  Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public int IndexOf(
	T element
)

Parameters

element
Type: T
The element to locate in the collection.

Return Value

Type: System..::..Int32
The index of the element, if it is in the collection; otherwise, -1.

If an element occurs multiple times in the collection, the IndexOf method always returns the first instance found.

Community Additions

ADD
Show:
© 2014 Microsoft