Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ActivityCollection::IList<Activity>::IndexOf Method

Determines the index of a specific item in the IList.

Namespace:  System.Workflow.ComponentModel
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

private:
virtual int IndexOf(
	Activity^ item
) sealed = IList<Activity^>::IndexOf

Parameters

item
Type: System.Workflow.ComponentModel::Activity

The object to locate in the IList.

Return Value

Type: System::Int32
The index of item if found in the list; otherwise, -1.

Implements

IList<T>::IndexOf(T)

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0
Show:
© 2015 Microsoft