Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ScheduleActivity Method (Activity, CompletionCallback)

NativeActivityContext.ScheduleActivity Method (Activity, CompletionCallback)

.NET Framework 4.6 and 4.5

Schedules the specified NativeActivity child activity for execution using the specified completion callback location where the parent process resumes upon completion of the activity.

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

public ActivityInstance ScheduleActivity(
	Activity activity,
	CompletionCallback onCompleted
)

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 parent activity execution resumes upon completion of the ActivityAction.

Return Value

Type: System.Activities.ActivityInstance
An activity instance.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft