ActivityCollection::IList::IndexOf Method (Object^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: