Редагувати

Поділитися через


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);
public System.Activities.ActivityInstance ScheduleActivity (System.Activities.Activity activity);
member this.ScheduleActivity : System.Activities.Activity -> System.Activities.ActivityInstance
Public Function ScheduleActivity (activity As Activity) As ActivityInstance

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

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

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

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

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

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);
public System.Activities.ActivityInstance 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 -> System.Activities.ActivityInstance
Public Function ScheduleActivity (activity As Activity, onCompleted As CompletionCallback, onFaulted As FaultCallback) As ActivityInstance

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

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

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