Export (0) Print
Expand All
Expand Minimize

NativeActivityContext.ScheduleAction<T1, T2> Method (ActivityAction<T1, T2>, T1, T2, CompletionCallback, FaultCallback)

.NET Framework 4.6 and 4.5

Schedules for execution a specified ActivityAction<T1, T2> that has two parameters for in arguments and that bookmarks the specified callback locations where the parent process resumes upon completion of the ActivityAction<T1, T2>.

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

public ActivityInstance ScheduleAction<T1, T2>(
	ActivityAction<T1, T2> activityAction,
	T1 argument1,
	T2 argument2,
	CompletionCallback onCompleted,
	FaultCallback onFaulted
)

Type Parameters

T1

The data that is carried into an activity.

T2

The data that is carried into an activity.

Parameters

activityAction
Type: System.Activities.ActivityAction<T1, T2>

An action that executes when a specific event occurs in the parent activity.

argument1
Type: T1

An argument that carries data into an activity.

argument2
Type: T2

An argument that carries data into an activity.

onCompleted
Type: System.Activities.CompletionCallback

A bookmark that indicates where the parent activity execution resumes upon completion of the ActivityAction<T1, T2>.

onFaulted
Type: System.Activities.FaultCallback

A bookmark that indicates where the parent activity execution resumes if an error causes the termination of the ActivityAction<T1, T2>.

Return Value

Type: System.Activities.ActivityInstance
An instance of an activity.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft