Edit

Share via


NativeActivityContext.ScheduleActivity Method

Definition

Schedules a NativeActivity child activity for execution.

Overloads

ScheduleActivity(Activity)

Schedules the specified NativeActivity child activity for execution.

ScheduleActivity(Activity, CompletionCallback)

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

ScheduleActivity(Activity, FaultCallback)

Schedules the specified NativeActivity child activity for execution using the specified fault callback location where the parent process resumes when the activity enters the faulted state.

ScheduleActivity(Activity, CompletionCallback, FaultCallback)

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.

ScheduleActivity<TResult>(Activity<TResult>, CompletionCallback<TResult>, FaultCallback)

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>.

ScheduleActivity(Activity)

Schedules the specified NativeActivity child activity for execution.

public System.Activities.ActivityInstance ScheduleActivity(System.Activities.Activity activity);

Parameters

activity
Activity

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

Returns

An activity instance.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ScheduleActivity(Activity, CompletionCallback)

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

public System.Activities.ActivityInstance ScheduleActivity(System.Activities.Activity activity, System.Activities.CompletionCallback onCompleted);

Parameters

activity
Activity

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

onCompleted
CompletionCallback

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

Returns

An activity instance.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ScheduleActivity(Activity, FaultCallback)

Schedules the specified NativeActivity child activity for execution using the specified fault callback location where the parent process resumes when the activity enters the faulted state.

public System.Activities.ActivityInstance ScheduleActivity(System.Activities.Activity activity, System.Activities.FaultCallback onFaulted);

Parameters

activity
Activity

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

onFaulted
FaultCallback

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

Returns

An activity instance.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ScheduleActivity(Activity, CompletionCallback, FaultCallback)

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.

public System.Activities.ActivityInstance ScheduleActivity(System.Activities.Activity activity, System.Activities.CompletionCallback onCompleted, System.Activities.FaultCallback onFaulted);

Parameters

activity
Activity

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

onCompleted
CompletionCallback

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

onFaulted
FaultCallback

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

Returns

An instance of an activity.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ScheduleActivity<TResult>(Activity<TResult>, CompletionCallback<TResult>, FaultCallback)

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>.

public System.Activities.ActivityInstance ScheduleActivity<TResult>(System.Activities.Activity<TResult> activity, System.Activities.CompletionCallback<TResult> onCompleted = default, System.Activities.FaultCallback onFaulted = default);

Type Parameters

TResult

The type of the NativeActivity child activity out argument.

Parameters

activity
Activity<TResult>

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

onCompleted
CompletionCallback<TResult>

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

onFaulted
FaultCallback

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

Returns

An instance of an activity.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1