TplExtensions.AttachToParent<T> Method (Task<T>)

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function AttachToParent(Of T) ( _
    task As Task(Of T) _
) As Task(Of T)
public static Task<T> AttachToParent<T>(
    this Task<T> task
)
[ExtensionAttribute]
public:
generic<typename T>
static Task<T>^ AttachToParent(
    Task<T>^ task
)
static member AttachToParent : 
        task:Task<'T> -> Task<'T> 
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Task<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

TplExtensions Class

AttachToParent Overload

Microsoft.VisualStudio.Threading Namespace