Searches for the specified PropertyCriteria and returns the zero-based index of the first occurrence within the entire collection.

Namespace:  EPiServer
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public int IndexOf(
	PropertyCriteria criteria
)

Parameters

criteria
Type: EPiServer..::.PropertyCriteria
The PropertyCriteria to locate in the CollectionBase.

Return Value

The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1.

See Also