WindowsRuntimeSystemExtensions WindowsRuntimeSystemExtensions WindowsRuntimeSystemExtensions WindowsRuntimeSystemExtensions Class

정의

중요

이 API는 CLS 규격이 아닙니다.

작업과 Windows 런타임 비동기 작업 간 변환을 위한 확장 메서드를 포함합니다.Provides extension methods for converting between tasks and Windows Runtime asynchronous actions and operations.

public ref class WindowsRuntimeSystemExtensions abstract sealed
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public static class WindowsRuntimeSystemExtensions
type WindowsRuntimeSystemExtensions = class
Public Module WindowsRuntimeSystemExtensions
상속
WindowsRuntimeSystemExtensionsWindowsRuntimeSystemExtensionsWindowsRuntimeSystemExtensionsWindowsRuntimeSystemExtensions
특성

설명

확장 메서드 오버 로드를 사용 하 여 .net Task 개체를 사용 하 여 Windows 런타임에서 비동기 작업을 관리할 수 있습니다. AsTaskThe AsTask extension method overloads enable you to use a .NET Task object to manage an asynchronous operation from the Windows Runtime.

AsAsyncAction 메서드AsAsyncOperation 및 메서드를 사용 하면 Windows 런타임 비동기 작업 및 작업을 수행 하는 메서드에 시작 된 작업을 전달할 수 있습니다.The AsAsyncAction method and the AsAsyncOperation method enable you to pass started tasks to methods that take Windows Runtime asynchronous actions and operations. 또한 AsyncInfo 클래스의 메서드를 참조 하세요.See also the methods of the AsyncInfo class.

메서드 GetAwaiter 는 컴파일러에서 작업을 구현 하는 데 사용 됩니다 (Visual Basic).The GetAwaiter methods are used by compilers to implement the operation ( in Visual Basic).

메서드

AsAsyncAction(Task) AsAsyncAction(Task) AsAsyncAction(Task) AsAsyncAction(Task)

시작된 작업을 나타내는 Windows 런타임 비동기 작업을 반환합니다.Returns a Windows Runtime asynchronous action that represents a started task.

AsAsyncOperation<TResult>(Task<TResult>) AsAsyncOperation<TResult>(Task<TResult>) AsAsyncOperation<TResult>(Task<TResult>) AsAsyncOperation<TResult>(Task<TResult>)

결과를 반환하는 시작된 작업을 나타내는 Windows 런타임 비동기 작업을 반환합니다.Returns a Windows Runtime asynchronous operation that represents a started task that returns a result.

AsTask(IAsyncAction) AsTask(IAsyncAction) AsTask(IAsyncAction) AsTask(IAsyncAction)

Windows 런타임 비동기 작업을 나타내는 작업을 반환합니다.Returns a task that represents a Windows Runtime asynchronous action.

AsTask(IAsyncAction, CancellationToken) AsTask(IAsyncAction, CancellationToken) AsTask(IAsyncAction, CancellationToken) AsTask(IAsyncAction, CancellationToken)

취소할 수 있는 Windows 런타임 비동기 작업을 나타내는 작업을 반환합니다.Returns a task that represents a Windows Runtime asynchronous action that can be cancelled.

AsTask<TProgress>(IAsyncActionWithProgress<TProgress>) AsTask<TProgress>(IAsyncActionWithProgress<TProgress>) AsTask<TProgress>(IAsyncActionWithProgress<TProgress>) AsTask<TProgress>(IAsyncActionWithProgress<TProgress>)

Windows 런타임 비동기 작업을 나타내는 작업을 반환합니다.Returns a task that represents a Windows Runtime asynchronous action.

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

진행률을 보고하는 Windows 런타임 비동기 작업을 나타내는 작업을 반환합니다.Returns a task that represents a Windows Runtime asynchronous action that reports progress.

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

취소할 수 있는 Windows 런타임 비동기 작업을 나타내는 작업을 반환합니다.Returns a task that represents a Windows Runtime asynchronous action that can be cancelled.

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

진행률을 보고하고 취소할 수 있는 Windows 런타임 비동기 작업을 나타내는 작업을 반환합니다.Returns a task that represents a Windows Runtime asynchronous action that reports progress and can be cancelled.

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

결과를 반환하고 진행률을 보고하며 취소할 수 있는 Windows 런타임 비동기 작업을 나타내는 작업을 반환합니다.Returns a task that represents a Windows Runtime asynchronous operation that returns a result, reports progress, and can be cancelled.

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

결과를 반환하고 취소할 수 있는 Windows 런타임 비동기 작업을 나타내는 작업을 반환합니다.Returns a task that represents a Windows Runtime asynchronous operation that returns a result and can be cancelled.

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

결과를 반환하는 Windows 런타임 비동기 작업을 나타내는 작업을 반환합니다.Returns a task that represents a Windows Runtime asynchronous operation returns a result.

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

결과를 반환하고 진행률을 보고하는 Windows 런타임 비동기 작업을 나타내는 작업을 반환합니다.Returns a task that represents Windows Runtime asynchronous operation that returns a result and reports progress.

AsTask<TResult>(IAsyncOperation<TResult>) AsTask<TResult>(IAsyncOperation<TResult>) AsTask<TResult>(IAsyncOperation<TResult>) AsTask<TResult>(IAsyncOperation<TResult>)

결과를 반환하는 Windows 런타임 비동기 작업을 나타내는 작업을 반환합니다.Returns a task that represents a Windows Runtime asynchronous operation returns a result.

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

결과를 반환하고 취소할 수 있는 Windows 런타임 비동기 작업을 나타내는 작업을 반환합니다.Returns a task that represents a Windows Runtime asynchronous operation that returns a result and can be cancelled.

GetAwaiter(IAsyncAction) GetAwaiter(IAsyncAction) GetAwaiter(IAsyncAction) GetAwaiter(IAsyncAction)

이 API는 .NET Framework 인프라를 지원하며 사용자 코드에서 직접 사용할 수 없습니다.This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

GetAwaiter<TProgress>(IAsyncActionWithProgress<TProgress>) GetAwaiter<TProgress>(IAsyncActionWithProgress<TProgress>) GetAwaiter<TProgress>(IAsyncActionWithProgress<TProgress>) GetAwaiter<TProgress>(IAsyncActionWithProgress<TProgress>)

진행률을 보고하는 비동기 작업을 기다리는 개체를 반환합니다.Returns an object that awaits an asynchronous action that reports progress.

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

진행률을 보고하고 결과를 반환하는 비동기 작업을 기다리는 개체를 반환합니다.Returns an object that awaits an asynchronous operation that reports progress and returns a result.

GetAwaiter<TResult>(IAsyncOperation<TResult>) GetAwaiter<TResult>(IAsyncOperation<TResult>) GetAwaiter<TResult>(IAsyncOperation<TResult>) GetAwaiter<TResult>(IAsyncOperation<TResult>)

결과를 반환하는 비동기 작업을 기다리는 개체를 반환합니다.Returns an object that awaits an asynchronous operation that returns a result.

적용 대상