Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.53 KB

iasyncactionwithprogress_1_completed.md

File metadata and controls

37 lines (27 loc) · 1.53 KB
-api-id -api-type
P:Windows.Foundation.IAsyncActionWithProgress`1.Completed
winrt property

Windows.Foundation.IAsyncActionWithProgress.Completed

-description

Gets or sets the delegate that is called when the action completes.

-property-value

The delegate that is called when the action completes.

-remarks

You're not allowed to set the Completed property more than once.

Most applications don't use the Completed property directly, but instead use a language-specific syntax for awaiting the completion of an asynchronous action, such as co_await (C++/WinRT), await (C#, Javascript), or then (Javascript, C++/CX).

If the Completed property is set after the action has already completed, then the action behaves as if it had completed immediately after the handler was received. Note that this can result in the handler being called before the Completed property setter has returned; possibly even from the same thread.

-examples

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

-see-also

IAsyncActionWithProgress<TProgress>