TaskExtensions.AsResultTask Method
This element is introduced in Windows PowerShell 5.0.
Namespace: Microsoft.OneGet.Utility.Extensions
Assembly: Microsoft.OneGet.Utility (in Microsoft.OneGet.Utility.dll)
Usage
'Usage
Dim result As T
Dim returnValue As Task(Of T)
returnValue = TaskExtensions.AsResultTask(result)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function AsResultTask(Of T) ( _
result As T _
) As Task(Of T)
[ExtensionAttribute]
public static Task<T> AsResultTask<T> (
T result
)
[ExtensionAttribute]
public:
generic<typename T>
static Task<T>^ AsResultTask (
T result
)
GenericParameters
- T
Parameters
- result
Return Value
Returns Task.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also
Reference
TaskExtensions Class
TaskExtensions Members
Microsoft.OneGet.Utility.Extensions Namespace