Поделиться через


IAsyncActionWithProgress<TProgress> interface

Represents an asynchronous action that reports progress.

Template parameters

  • TProgress
    The type that encapsulates progress reports from the asynchronous action.

Members

The IAsyncActionWithProgress<TProgress> interface inherits from IAsyncAction. IAsyncActionWithProgress also has these types of members:

  • Methods

Methods

The IAsyncActionWithProgress<TProgress> interface has these methods.

Method Description
get_Completed

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

get_Progress

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

GetResults

Gets the outcome of an asynchronous action.

put_Completed

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

put_Progress

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

 

Remarks

The IAsyncActionWithProgress<TProgress> interface represents an asynchronous action that reports progress notifications and does not return a result.

When the action reports progress, the IAsyncActionProgressHandler<TProgress> specified by get_Progress is invoked.

When the action completes, the AsyncActionCompletedHandler specified by get_Completed is invoked, and this is the only result from the action.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Windows.Foundation.Collections.h

See also

IAsyncAction

IAsyncActionProgressHandler<TProgress>