TplExtensions::AttachToParent<T> Method (Task<T>^)

 

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:
generic<typename T>
[ExtensionAttribute]
static Task<T>^ AttachToParent(
	Task<T>^ task
)

Parameters

task
Type: System.Threading.Tasks::Task<T>^

The task to wrap with an AttachedToParent task.

Return Value

Type: System.Threading.Tasks::Task<T>^

A Task<TResult> that is attached to parent.

Type Parameters

T

The type of value produced by the task.

Return to top
Show: