Export (0) Print
Expand All

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.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method GetActivityByName(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.
Public method GetActivityByName(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.
Top

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

Show:
© 2014 Microsoft