Click or drag to resize
Task Scheduler Managed Class Library

ActionCollectionFindIndexOf Method (Int32, Int32, PredicateAction)

Searches for an Action that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the collection that starts at the specified index and contains the specified number of elements.

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public int FindIndexOf(
	int startIndex,
	int count,
	Predicate<Action> match
)
Request Example View Source

Parameters

startIndex
Type: SystemInt32
The zero-based starting index of the search.
count
Type: SystemInt32
The number of elements in the collection to search.
match
Type: SystemPredicateAction
The PredicateT delegate that defines the conditions of the element to search for.

Return Value

Type: Int32
The zero-based index of the first occurrence of an element that matches the conditions defined by match, if found; otherwise, –1.
See Also