Share via


IAsyncOperationWithProgress interface

Represents an asynchronous operation that returns a result and reports progress.

Members

The IAsyncOperationWithProgress<TResult,TProgress> interface inherits from the IUnknown interface. IAsyncOperationWithProgress also has these types of members:

  • Methods

Methods

The IAsyncOperationWithProgress<TResult,TProgress> interface has these methods.

Method Description
get_Completed

Gets the method that is called when the asynchronous operation completes.

get_Progress

Gets the method that is called when the asynchronous operation reports progress.

GetResults

Gets the outcome of the asynchronous operation.

put_Completed

Sets the method that is called when the asynchronous operation completes.

put_Progress

Sets the method that is called when the asynchronous operation reports progress.

 

Remarks

The IAsyncOperationWithProgress<TResult,TProgress> interface represents an asynchronous operation that returns a result and reports progress notifications.

When the operation reports progress, the IAsyncOperationProgressHandler<TResult,TProgress> specified by get_Progress is invoked.

When the operation completes, the IAsyncOperationWithProgressCompletedHandler<TResult,TProgress> specified by get_Completed is invoked.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Windows.Foundation.Collections.h

See also

IAsyncOperationProgressHandler<TResult,TProgress>

IAsyncOperationWithProgressCompletedHandler<TResult,TProgress>