IAsyncOperationWithProgress<TResult, TProgress>.Progress IAsyncOperationWithProgress<TResult, TProgress>.Progress IAsyncOperationWithProgress<TResult, TProgress>.Progress IAsyncOperationWithProgress<TResult, TProgress>.Progress IAsyncOperationWithProgress<TResult, TProgress>.Progress Property

Definition

Gets or sets the method that handles progress notifications.

public : AsyncOperationProgressHandler<TResult, TProgress> Progress { get; set; }
AsyncOperationProgressHandler<TResult, TProgress> Progress();

void Progress(AsyncOperationProgressHandler<TResult, TProgress> progress);
public AsyncOperationProgressHandler<TResult, TProgress> Progress { get; set; }
Public ReadWrite Property Progress As AsyncOperationProgressHandler<TResult, TProgress>
var asyncOperationProgressHandler = iAsyncOperationWithProgress`2.progress;
iAsyncOperationWithProgress`2.progress = asyncOperationProgressHandler;

Property Value

A reference to the callback method that handles progress notifications. Implement the AsyncOperationProgressHandler, TProgress> delegate to define your callback. TProgress defines the progress unit type, which varies by method implementation.

Examples

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

See also