編輯

共用方式為


UIDocument.Save(NSUrl, UIDocumentSaveOperation, UIOperationHandler) Method

Definition

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

[Foundation.Export("saveToURL:forSaveOperation:completionHandler:")]
public virtual void Save (Foundation.NSUrl url, UIKit.UIDocumentSaveOperation saveOperation, UIKit.UIOperationHandler completionHandler);
abstract member Save : Foundation.NSUrl * UIKit.UIDocumentSaveOperation * UIKit.UIOperationHandler -> unit
override this.Save : Foundation.NSUrl * UIKit.UIDocumentSaveOperation * UIKit.UIOperationHandler -> unit

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.

completionHandler
UIOperationHandler

A code action that is executed when a save operation comes to a conclusion.

This parameter can be null.

Attributes

Remarks

This can be used from a background thread.

Applies to