AsyncOperationProgressHandler<TResult,TProgress> Delegate

Definition

Represents a method that handles progress update events of an asynchronous operation that provides progress updates.

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1432946946, 2731, 16922, 135, 120, 248, 206, 80, 38, 215, 88)]
template <typename TResult, typename TProgress>
class AsyncOperationProgressHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.Guid(1432946946, 2731, 16922, 135, 120, 248, 206, 80, 38, 215, 88)]
public delegate void AsyncOperationProgressHandler<TResult,TProgress>(IAsyncOperationWithProgress<TResult,TProgress> asyncInfo, TProgress progressInfo);
Public Delegate Sub AsyncOperationProgressHandler(Of TResult, TProgress)(asyncInfo As IAsyncOperationWithProgress(Of TResult, TProgress), progressInfo As TProgress)

Type Parameters

TResult
TProgress

Parameters

asyncInfo
IAsyncOperationWithProgress<TResult,TProgress>

The asynchronous operation.

progressInfo
TProgress

The progress information.

Inheritance
AsyncOperationProgressHandler<TResult,TProgress>
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced in v1.0)

Examples

For example C++/WinRT code illustrating how to handle the Progress event, see Delegate types for asynchronous actions and operations.

Applies to