NativeActivityContext.ScheduleActivity<TResult> Method (Activity<TResult>, CompletionCallback<TResult>, FaultCallback)

.NET Framework (current version)
 

Schedules the specified NativeActivity child activity for execution, with one parameter for an in argument, and bookmarks the specified callback locations where the parent process resumes upon completion of the ActivityAction<T>.

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

public ActivityInstance ScheduleActivity<TResult>(
	Activity<TResult> activity,
	CompletionCallback<TResult> onCompleted = null,
	FaultCallback onFaulted = null
)

Parameters

activity
Type: System.Activities.Activity<TResult>

A child activity that is triggered by an event that occurs in the execution of a parent NativeActivity.

onCompleted
Type: System.Activities.CompletionCallback<TResult>

A bookmark that indicates where the NativeActivity execution resumes upon completion of the ActivityAction<T>.

onFaulted
Type: System.Activities.FaultCallback

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

Return Value

Type: System.Activities.ActivityInstance

An instance of an activity.

Type Parameters

TResult

The type of the NativeActivity child activity out argument.

.NET Framework
Available since 4.0
Return to top
Show: