NativeActivityContext.ScheduleActivity Method (Activity, CompletionCallback, FaultCallback)

.NET Framework (current version)
 

Schedules the specified NativeActivity child activity for execution and bookmarks the specified callback locations where the parent process resumes upon completion of the child activity.

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

public ActivityInstance ScheduleActivity(
	Activity activity,
	CompletionCallback onCompleted,
	FaultCallback onFaulted
)

Parameters

activity
Type: System.Activities.Activity

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

onCompleted
Type: System.Activities.CompletionCallback

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

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.

.NET Framework
Available since 4.0
Return to top
Show: