TplExtensions::AppendAction Method (Task^, Action^, TaskContinuationOptions, CancellationToken)

 

Schedules some action for execution at the conclusion of a task.

Namespace:   Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

public:
[ExtensionAttribute]
static Task^ AppendAction(
	Task^ task,
	Action^ action,
	TaskContinuationOptions options = TaskContinuationOptions::None,
	CancellationToken cancellation = null
)

Parameters

task
Type: System.Threading.Tasks::Task^

The task.

action
Type: System::Action^

The action.

options
Type: System.Threading.Tasks::TaskContinuationOptions

The task continuation options.

cancellation
Type: System.Threading::CancellationToken

The cancellation token.

Return Value

Type: System.Threading.Tasks::Task^

A Taskthat will execute the action.

Return to top
Show: