GetActivityByName Method

Activity.GetActivityByName Method

 

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)

NameDescription
System_CAPS_pubmethodGetActivityByName(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, which is within the workflow.

System_CAPS_pubmethodGetActivityByName(String, Boolean)

Returns the instance of the Activity whose name is requested from the set of all activities under the root the Activity of this instance if the second parameter is false and under the current Activity if the second parameter is true.

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

Return to top
Show:
© 2016 Microsoft