Export (0) Print
Expand All

Activity.GetActivityByName Method (String)

Returns the instance of the Activity whose name is requested from the set of all activities running under the root activity of this instance, that is within the workflow.

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

public Activity GetActivityByName (
	string activityQualifiedName
)
public Activity GetActivityByName (
	String activityQualifiedName
)
public function GetActivityByName (
	activityQualifiedName : String
) : Activity
Not applicable.

Parameters

activityQualifiedName

The name of the Activity to search for.

Return Value

The instance of the Activity whose name is requested from the set of all activities running under the root activity of this instance.

Exception typeCondition

ArgumentNullException

activityQualifiedID is a null reference (Nothing in Visual Basic).

Calling GetActivityByName from within the constructor of a custom activity is not supported and can have unexpected results.

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

Community Additions

ADD
Show:
© 2014 Microsoft