Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

private:
virtual int IndexOf(
	Object^ value
) sealed = IList::IndexOf

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:
© 2017 Microsoft