Edit

Share via


NativeActivityUpdateContext.ScheduleActivity Method

Definition

Schedules the specified NativeActivity.

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 using the specified fault callback location where the parent process resumes when the activity enters the faulted state.

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:
 void ScheduleActivity(System::Activities::Activity ^ activity);
public void ScheduleActivity (System.Activities.Activity activity);
member this.ScheduleActivity : System.Activities.Activity -> unit
Public Sub ScheduleActivity (activity As Activity)

Parameters

activity
Activity

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

Applies to

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:
 void ScheduleActivity(System::Activities::Activity ^ activity, System::Activities::CompletionCallback ^ onCompleted);
public void ScheduleActivity (System.Activities.Activity activity, System.Activities.CompletionCallback onCompleted);
member this.ScheduleActivity : System.Activities.Activity * System.Activities.CompletionCallback -> unit
Public Sub ScheduleActivity (activity As Activity, onCompleted As CompletionCallback)

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.

Applies to

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:
 void ScheduleActivity(System::Activities::Activity ^ activity, System::Activities::FaultCallback ^ onFaulted);
public void ScheduleActivity (System.Activities.Activity activity, System.Activities.FaultCallback onFaulted);
member this.ScheduleActivity : System.Activities.Activity * System.Activities.FaultCallback -> unit
Public Sub ScheduleActivity (activity As Activity, onFaulted As FaultCallback)

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 NativeActivity execution resumes if an error causes the termination of the ActivityAction.

Applies to

ScheduleActivity(Activity, CompletionCallback, 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:
 void ScheduleActivity(System::Activities::Activity ^ activity, System::Activities::CompletionCallback ^ onCompleted, System::Activities::FaultCallback ^ onFaulted);
public void ScheduleActivity (System.Activities.Activity activity, System.Activities.CompletionCallback onCompleted, System.Activities.FaultCallback onFaulted);
member this.ScheduleActivity : System.Activities.Activity * System.Activities.CompletionCallback * System.Activities.FaultCallback -> unit
Public Sub ScheduleActivity (activity As Activity, onCompleted As CompletionCallback, onFaulted As FaultCallback)

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.

onFaulted
FaultCallback

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

Applies to

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 void ScheduleActivity<TResult> (System.Activities.Activity<TResult> activity, System.Activities.CompletionCallback<TResult> onCompleted = default, System.Activities.FaultCallback onFaulted = default);
member this.ScheduleActivity : System.Activities.Activity<'Result> * System.Activities.CompletionCallback<'Result> * System.Activities.FaultCallback -> unit
Public Sub ScheduleActivity(Of TResult) (activity As Activity(Of TResult), Optional onCompleted As CompletionCallback(Of TResult) = Nothing, Optional onFaulted As FaultCallback = Nothing)

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.

Applies to