NativeActivityContext.ScheduleActivity Method (Activity, FaultCallback)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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


Type: System.Activities.Activity

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

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