Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

TaskExtensions Class

Provides a set of static (Shared in Visual Basic) methods for working with specific kinds of Task instances.

System.Object
  System.Threading.Tasks.TaskExtensions

Namespace:  System.Threading.Tasks
Assemblies:   System.Core (in System.Core.dll)
  System.Threading.Tasks (in System.Threading.Tasks.dll)

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class TaskExtensions

  NameDescription
Public methodStatic memberSupported by Portable Class LibraryUnwrap(Task(Of Task))Creates a proxy Task that represents the asynchronous operation of a TryExecuteTaskInline.
Public methodStatic memberSupported by Portable Class LibraryUnwrap(Of TResult)(Task(Of Task(Of TResult)))Creates a proxy Task that represents the asynchronous operation of a Task<Task<T>> (C#) or Task (Of Task(Of T)) (Visual Basic).
Top

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft