TplExtensions::AttachToParent<T> Method (Task<T>^)
Visual Studio 2015
Creates a task that is attached to the parent task, but produces the same result as an existing task.
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.
Type Parameters
- T
The type of value produced by the task.
Show: