TplExtensions::AttachToParent Method (Task^)

 

Creates a task that is attached to the parent task, but produces the same result as an existing task.

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

public:
[ExtensionAttribute]
static Task^ AttachToParent(
	Task^ task
)

Parameters

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

The task to wrap with an AttachedToParent task.

Return Value

Type: System.Threading.Tasks::Task^

A Task<TResult> that is attached to parent.

Return to top
Show: