ActivityCollection.IList.IndexOf Method (Object)

 

Gets the zero-based index of the Object in the underlying activities collection.

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

int IList.IndexOf(
	object value
)

Parameters

value
Type: System.Object

The Object to be indexed.

Return Value

Type: System.Int32

The zero-based index of the value in the underlying activities collection or -1 if not found in the collection.

Exception Condition
ArgumentException

The value is not of type Activity and the exception object contains "Error_InvalidListItem" error message.

.NET Framework
Available since 3.0
Return to top
Show: