Szerkesztés

Megosztás a következőn keresztül:


WorkflowInspectionServices.GetActivities(Activity) Method

Definition

Returns an IEnumerable<T> that represents all activities associated with the input activity.

public:
 static System::Collections::Generic::IEnumerable<System::Activities::Activity ^> ^ GetActivities(System::Activities::Activity ^ activity);
public static System.Collections.Generic.IEnumerable<System.Activities.Activity> GetActivities (System.Activities.Activity activity);
static member GetActivities : System.Activities.Activity -> seq<System.Activities.Activity>
Public Shared Function GetActivities (activity As Activity) As IEnumerable(Of Activity)
Public Shared Iterator Function GetActivities (activity As Activity) As IEnumerable(Of Activity)

Parameters

activity
Activity

The root activity.

Returns

An enumeration that represents all activities associated with the input activity.

Remarks

The enumeration contains all child activities, delegate handlers, variable defaults, and argument expressions. If the input activity is null, an ArgumentNullException is thrown. The activity tree must remain unmodified and CacheMetadata must not be called while the tree is being enumerated or else an InvalidOperationException is thrown when MoveNext is called.

Calling this method causes a full cache metadata to occur. If you make changes to the workflow after calling this method, you must call the ActivityValidationServices Validate method after making the changes in order to re-cache the metadata.

Applies to