This documentation is archived and is not being maintained.

ActivityCollection.IndexOf Method (Activity)

Gets the index of the Activity in the ICollection.

Namespace: System.Workflow.ComponentModel
Assembly: System.Workflow.ComponentModel (in system.workflow.componentmodel.dll)

public int IndexOf (
	Activity item
)
public int IndexOf (
	Activity item
)
public function IndexOf (
	item : Activity
) : int
Not applicable.

Parameters

item

The activity for which to acquire the index.

Return Value

The index of the Activity in the ICollection. Otherwise -1 (if Activity is not in the ICollection).

This collection is type-safe. A run-time exception will be raised if an item is not of type Activity.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: