AsyncOperationProgressHandler<TResult,TProgress> AsyncOperationProgressHandler<TResult,TProgress> AsyncOperationProgressHandler<TResult,TProgress> AsyncOperationProgressHandler<TResult,TProgress> AsyncOperationProgressHandler<TResult,TProgress> Delegate

Definition

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

public : delegate void AsyncOperationProgressHandler<TResult, TProgress>(IAsyncOperationWithProgress<TResult, TProgress> asyncInfo, TProgress progressInfo)
struct AsyncOperationProgressHandler<TResult, TProgress> : winrt::Windows::Foundation::IUnknown
{
   AsyncOperationProgressHandler(std::nullptr_t = nullptr) noexcept;
   template <typename L> AsyncOperationProgressHandler(L lambda);
   template <typename F> AsyncOperationProgressHandler(F* function);
   template <typename O, typename M> AsyncOperationProgressHandler(O* object, M method);
   void operator()(winrt::Windows::Foundation::IAsyncOperationWithProgress<TResult, TProgress> const& asyncInfo, TProgress const& progressInfo) const;
};
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)
var asyncOperationProgressHandler = function(asyncInfo, progressInfo) {

 /* Your code */

}
Parameters
progressInfo
TProgress TProgress TProgress

The progress information.

Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)