Editar

Compartilhar via


UIDocument.SaveAsync(NSUrl, UIDocumentSaveOperation) Method

Definition

Saves the document data to the specified location in the application sandbox.

public virtual System.Threading.Tasks.Task<bool> SaveAsync (Foundation.NSUrl url, UIKit.UIDocumentSaveOperation saveOperation);
abstract member SaveAsync : Foundation.NSUrl * UIKit.UIDocumentSaveOperation -> System.Threading.Tasks.Task<bool>
override this.SaveAsync : Foundation.NSUrl * UIKit.UIDocumentSaveOperation -> System.Threading.Tasks.Task<bool>

Parameters

url
NSUrl

URL that indicates the location of a document file.

saveOperation
UIDocumentSaveOperation

This represents a constant indicating if a document file is being written for the first time or being overwritten.

Returns

A task that represents the asynchronous Save operation. The value of the TResult parameter is a UIOperationHandler.

Remarks

This can be used from a background thread.

Applies to