Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IList.IndexOf Method

ActivityCollection.IList.IndexOf Method

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.

Implements

IList.IndexOf(Object)

ExceptionCondition
ArgumentException

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

.NET Framework

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