NativeActivityContext.ScheduleActivity Method (Activity, FaultCallback)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

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

public ActivityInstance ScheduleActivity(
	Activity activity,
	FaultCallback onFaulted
)

Parameters

activity
Type: System.Activities.Activity

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

onFaulted
Type: System.Activities.FaultCallback

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

Return Value

Type: System.Activities.ActivityInstance

An activity instance.

.NET Framework
Available since 4.0
Return to top
Show: