WindowsRuntimeSystemExtensions.GetAwaiter 메서드

정의

오버로드

GetAwaiter(IAsyncAction)

이 API는 .NET Framework 인프라를 지원하며 사용자 코드에서 직접 사용할 수 없습니다.

GetAwaiter<TProgress>(IAsyncActionWithProgress<TProgress>)

진행률을 보고하는 비동기 작업을 기다리는 개체를 반환합니다.

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

진행률을 보고하고 결과를 반환하는 비동기 작업을 기다리는 개체를 반환합니다.

GetAwaiter<TResult>(IAsyncOperation<TResult>)

결과를 반환하는 비동기 작업을 기다리는 개체를 반환합니다.

GetAwaiter(IAsyncAction)

이 API는 .NET Framework 인프라를 지원하며 사용자 코드에서 직접 사용할 수 없습니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Runtime::CompilerServices::TaskAwaiter GetAwaiter(Windows::Foundation::IAsyncAction ^ source);
public static System.Runtime.CompilerServices.TaskAwaiter GetAwaiter (this Windows.Foundation.IAsyncAction source);
static member GetAwaiter : Windows.Foundation.IAsyncAction -> System.Runtime.CompilerServices.TaskAwaiter
<Extension()>
Public Function GetAwaiter (source As IAsyncAction) As TaskAwaiter

매개 변수

source
IAsyncAction

대기 중인 비동기 작업입니다.

반환

TaskAwaiter

지정된 비동기 작업을 기다리는 개체입니다.

설명

참고

Visual Basic 및 C#에서는 IAsyncAction 형식의 모든 개체에서 이 메서드를 인스턴스 메서드로 호출할 수 있습니다. 인스턴스 메서드 구문을 사용하여 이 메서드를 호출할 경우에는 첫 번째 매개 변수를 생략합니다. 자세한 내용은 확장 메서드(Visual Basic) 또는 확장 메서드(C# 프로그래밍 가이드)를 참조하세요.

적용 대상

GetAwaiter<TProgress>(IAsyncActionWithProgress<TProgress>)

진행률을 보고하는 비동기 작업을 기다리는 개체를 반환합니다.

public:
generic <typename TProgress>
[System::Runtime::CompilerServices::Extension]
 static System::Runtime::CompilerServices::TaskAwaiter GetAwaiter(Windows::Foundation::IAsyncActionWithProgress<TProgress> ^ source);
public static System.Runtime.CompilerServices.TaskAwaiter GetAwaiter<TProgress> (this Windows.Foundation.IAsyncActionWithProgress<TProgress> source);
static member GetAwaiter : Windows.Foundation.IAsyncActionWithProgress<'Progress> -> System.Runtime.CompilerServices.TaskAwaiter
<Extension()>
Public Function GetAwaiter(Of TProgress) (source As IAsyncActionWithProgress(Of TProgress)) As TaskAwaiter

형식 매개 변수

TProgress

진행을 나타내는 데이터를 제공하는 개체의 형식입니다.

매개 변수

source
IAsyncActionWithProgress<TProgress>

대기 중인 비동기 작업입니다.

반환

TaskAwaiter

지정된 비동기 작업을 기다리는 개체입니다.

설명

참고

Visual Basic 및 C#에서는 형식의 모든 개체에서 이 메서드를 인스턴스 메서드로 호출할 수 IAsyncActionWithProgress<TProgress> 있습니다. 인스턴스 메서드 구문을 사용하여 이 메서드를 호출할 경우에는 첫 번째 매개 변수를 생략합니다. 자세한 내용은 확장 메서드(Visual Basic) 또는 확장 메서드(C# 프로그래밍 가이드)를 참조하세요.

적용 대상

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

진행률을 보고하고 결과를 반환하는 비동기 작업을 기다리는 개체를 반환합니다.

public:
generic <typename TResult, typename TProgress>
[System::Runtime::CompilerServices::Extension]
 static System::Runtime::CompilerServices::TaskAwaiter<TResult> GetAwaiter(Windows::Foundation::IAsyncOperationWithProgress<TResult, TProgress> ^ source);
public static System.Runtime.CompilerServices.TaskAwaiter<TResult> GetAwaiter<TResult,TProgress> (this Windows.Foundation.IAsyncOperationWithProgress<TResult,TProgress> source);
static member GetAwaiter : Windows.Foundation.IAsyncOperationWithProgress<'Result, 'Progress> -> System.Runtime.CompilerServices.TaskAwaiter<'Result>
<Extension()>
Public Function GetAwaiter(Of TResult, TProgress) (source As IAsyncOperationWithProgress(Of TResult, TProgress)) As TaskAwaiter(Of TResult)

형식 매개 변수

TResult

비동기 작업의 결과를 반환하는 개체의 형식입니다.

TProgress

진행을 나타내는 데이터를 제공하는 개체의 형식입니다.

매개 변수

source
IAsyncOperationWithProgress<TResult,TProgress>

대기할 비동기 작업입니다.

반환

TaskAwaiter<TResult>

지정된 비동기 작업을 기다리는 개체입니다.

설명

참고

Visual Basic 및 C#에서는 형식의 모든 개체에서 이 메서드를 인스턴스 메서드로 호출할 수 IAsyncOperationWithProgress<TResult,TProgress> 있습니다. 인스턴스 메서드 구문을 사용하여 이 메서드를 호출할 경우에는 첫 번째 매개 변수를 생략합니다. 자세한 내용은 확장 메서드(Visual Basic) 또는 확장 메서드(C# 프로그래밍 가이드)를 참조하세요.

적용 대상

GetAwaiter<TResult>(IAsyncOperation<TResult>)

결과를 반환하는 비동기 작업을 기다리는 개체를 반환합니다.

public:
generic <typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Runtime::CompilerServices::TaskAwaiter<TResult> GetAwaiter(Windows::Foundation::IAsyncOperation<TResult> ^ source);
public static System.Runtime.CompilerServices.TaskAwaiter<TResult> GetAwaiter<TResult> (this Windows.Foundation.IAsyncOperation<TResult> source);
static member GetAwaiter : Windows.Foundation.IAsyncOperation<'Result> -> System.Runtime.CompilerServices.TaskAwaiter<'Result>
<Extension()>
Public Function GetAwaiter(Of TResult) (source As IAsyncOperation(Of TResult)) As TaskAwaiter(Of TResult)

형식 매개 변수

TResult

비동기 작업의 결과를 반환하는 개체의 형식입니다.

매개 변수

source
IAsyncOperation<TResult>

대기할 비동기 작업입니다.

반환

TaskAwaiter<TResult>

지정된 비동기 작업을 기다리는 개체입니다.

설명

참고

Visual Basic 및 C#에서는 IAsyncOperation 형식의 모든 개체에서 이 메서드를 인스턴스 메서드로 호출할 수 <TResult> 있습니다. 인스턴스 메서드 구문을 사용하여 이 메서드를 호출할 경우에는 첫 번째 매개 변수를 생략합니다. 자세한 내용은 확장 메서드(Visual Basic) 또는 확장 메서드(C# 프로그래밍 가이드)를 참조하세요.

적용 대상