Share via


UIDocument.CloseAsync Method

Definition

Asynchronously closes the document after saving any changes.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<bool> CloseAsync();
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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.

Attributes

Remarks

This can be used from a background thread.

Applies to