UIDocument.CloseAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Asynchronously closes the document after saving any changes.
public virtual System.Threading.Tasks.Task<bool> CloseAsync ();
abstract member CloseAsync : unit -> System.Threading.Tasks.Task<bool>
override this.CloseAsync : unit -> System.Threading.Tasks.Task<bool>
Returns
A task that represents the asynchronous Close operation. The value of the TResult parameter is a UIOperationHandler.
Remarks
This can be used from a background thread.