NativeActivityContext.ScheduleDelegate Method (ActivityDelegate, IDictionary<String, Object>, DelegateCompletionCallback, FaultCallback)

.NET Framework (current version)
 

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

Namespace:   System.Activities
Assembly:  System.Activities (in System.Activities.dll)

public ActivityInstance ScheduleDelegate(
	ActivityDelegate activityDelegate,
	IDictionary<string, object> inputParameters,
	DelegateCompletionCallback onCompleted = null,
	FaultCallback onFaulted = null
)

Parameters

activityDelegate
Type: System.Activities.ActivityDelegate

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

inputParameters
Type: System.Collections.Generic.IDictionary<String, Object>

A dictionary list of activity argument names and values.

onCompleted
Type: System.Activities.DelegateCompletionCallback

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

onFaulted
Type: System.Activities.FaultCallback

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

Return Value

Type: System.Activities.ActivityInstance

An instance of an activity.

.NET Framework
Available since 4.0
Return to top
Show: