ActivityCollection.IList(Of 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)

'Declaration
Private Function IndexOf ( _
	item As Activity _
) As Integer Implements IList(Of 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(Of 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: