ערוך

שתף באמצעות


NativeActivityContext.ScheduleDelegate Method

Definition

Pushes the callback method for an activity into the work item pool.

public System.Activities.ActivityInstance ScheduleDelegate (System.Activities.ActivityDelegate activityDelegate, System.Collections.Generic.IDictionary<string,object> inputParameters, System.Activities.DelegateCompletionCallback onCompleted = default, System.Activities.FaultCallback onFaulted = default);
member this.ScheduleDelegate : System.Activities.ActivityDelegate * System.Collections.Generic.IDictionary<string, obj> * System.Activities.DelegateCompletionCallback * System.Activities.FaultCallback -> System.Activities.ActivityInstance
Public Function ScheduleDelegate (activityDelegate As ActivityDelegate, inputParameters As IDictionary(Of String, Object), Optional onCompleted As DelegateCompletionCallback = Nothing, Optional onFaulted As FaultCallback = Nothing) As ActivityInstance

Parameters

activityDelegate
ActivityDelegate

The callback method to which an activity returns when the specified activity action completes.

inputParameters
IDictionary<String,Object>

A dictionary list of activity argument names and values.

onCompleted
DelegateCompletionCallback

A bookmark that indicates where the parent activity execution resumes upon completion of the ActivityAction.

onFaulted
FaultCallback

A bookmark that indicates where the parent activity execution resumes if an error causes the termination of the ActivityAction.

Returns

An instance of an activity.

Applies to