ActivityCollection::IList<Activity^>::IndexOf Method (Activity^)

 

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.

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

.NET Framework
Available since 3.0
Return to top
Show: