AsyncActionProgressHandler<TProgress> Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a method that handles progress update events of an asynchronous action that provides progress updates.
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1837385816, 3327, 17808, 174, 137, 149, 165, 165, 200, 180, 184)]
template <typename TProgress>
class AsyncActionProgressHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.Guid(1837385816, 3327, 17808, 174, 137, 149, 165, 165, 200, 180, 184)]
public delegate void AsyncActionProgressHandler<TProgress>(IAsyncActionWithProgress<TProgress> asyncInfo, TProgress progressInfo);
Public Delegate Sub AsyncActionProgressHandler(Of TProgress)(asyncInfo As IAsyncActionWithProgress(Of TProgress), progressInfo As TProgress)
Type Parameters
- TProgress
Parameters
- asyncInfo
- IAsyncActionWithProgress<TProgress>
The asynchronous action.
- progressInfo
- TProgress
The progress information.
- Attributes
Windows 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.