次の方法で共有


TaskExtensions Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Inheritance Hierarchy

System.Object
  System.Threading.Tasks.TaskExtensions

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

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class TaskExtensions
public static class TaskExtensions

Methods

  Name Description
Public methodStatic member Unwrap(Task<Task>) Creates a proxy Task that represents the asynchronous operation of a Task<Task>.
Public methodStatic member Unwrap<TResult>(Task<Task<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

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

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.