Converts this Task.

Namespace: UnityThreading
Assembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static Task<T> As<T>(
	this Task that
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function As(Of T) ( _
	that As Task _
) As Task(Of T)
Visual C++
[ExtensionAttribute]
public:
generic<typename T>
static Task<T>^ As(
	Task^ that
)

Parameters

that
Type: UnityThreading..::..Task

Type Parameters

T

Return Value

The converted task.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Task. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also