WindowsRuntimeSystemExtensions クラス

定義

重要

この API は CLS 準拠ではありません。

タスクとWindows ランタイム非同期アクションと操作の間で変換するための拡張メソッドを提供します。

public ref class WindowsRuntimeSystemExtensions abstract sealed
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public static class WindowsRuntimeSystemExtensions
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
type WindowsRuntimeSystemExtensions = class
Public Module WindowsRuntimeSystemExtensions
継承
WindowsRuntimeSystemExtensions
属性

注釈

AsTask 拡張メソッドのオーバーロードを使用すると、.NET Task オブジェクトを使用して、Windows ランタイムからの非同期操作を管理できます。

AsAsyncAction メソッドと AsAsyncOperation メソッドを使用すると、非同期アクションと操作を実行するメソッドに開始タスクWindows ランタイム渡すことができます。 AsyncInfo クラスのメソッドも参照してください。

GetAwaiter メソッドは、コンパイラが await 操作 (Visual Basic の Await) を実装するために使用されます。

メソッド

名前 説明
AsAsyncAction(Task)

開始されたタスクを表す Windows ランタイム非同期アクションを返します。

AsAsyncOperation<TResult>(Task<TResult>)

結果を返す開始タスクを表す Windows ランタイム非同期操作を返します。

AsTask(IAsyncAction, CancellationToken)

取り消すことができるWindows ランタイム非同期アクションを表すタスクを返します。

AsTask(IAsyncAction)

Windows ランタイム非同期アクションを表すタスクを返します。

AsTask<TProgress>(IAsyncActionWithProgress<TProgress>, CancellationToken, IProgress<TProgress>)

進行状況を報告し、取り消すことができるWindows ランタイム非同期アクションを表すタスクを返します。

AsTask<TProgress>(IAsyncActionWithProgress<TProgress>, CancellationToken)

取り消すことができるWindows ランタイム非同期アクションを表すタスクを返します。

AsTask<TProgress>(IAsyncActionWithProgress<TProgress>, IProgress<TProgress>)

進行状況を報告するWindows ランタイム非同期アクションを表すタスクを返します。

AsTask<TProgress>(IAsyncActionWithProgress<TProgress>)

Windows ランタイム非同期アクションを表すタスクを返します。

AsTask<TResult,TProgress>(IAsyncOperationWithProgress<TResult,TProgress>, CancellationToken, IProgress<TProgress>)

結果を返し、進行状況を報告し、取り消すことができるWindows ランタイム非同期操作を表すタスクを返します。

AsTask<TResult,TProgress>(IAsyncOperationWithProgress<TResult,TProgress>, CancellationToken)

結果を返し、取り消すことができるWindows ランタイム非同期操作を表すタスクを返します。

AsTask<TResult,TProgress>(IAsyncOperationWithProgress<TResult,TProgress>, IProgress<TProgress>)

結果を返し、進行状況を報告Windows ランタイム非同期操作を表すタスクを返します。

AsTask<TResult,TProgress>(IAsyncOperationWithProgress<TResult,TProgress>)

非同期操作が結果を返Windows ランタイムを表すタスクを返します。

AsTask<TResult>(IAsyncOperation<TResult>, CancellationToken)

結果を返し、取り消すことができるWindows ランタイム非同期操作を表すタスクを返します。

AsTask<TResult>(IAsyncOperation<TResult>)

非同期操作が結果を返Windows ランタイムを表すタスクを返します。

GetAwaiter(IAsyncAction)

この API は .NET Framework インフラストラクチャをサポートしており、コードから直接使用するためのものではありません。

GetAwaiter<TProgress>(IAsyncActionWithProgress<TProgress>)

進行状況を報告する非同期アクションを待機するオブジェクトを返します。

GetAwaiter<TResult,TProgress>(IAsyncOperationWithProgress<TResult,TProgress>)

進行状況を報告し、結果を返す非同期操作を待機するオブジェクトを返します。

GetAwaiter<TResult>(IAsyncOperation<TResult>)

結果を返す非同期操作を待機するオブジェクトを返します。

適用対象