編集

次の方法で共有


UIDocument.RevertToContentsOfUrlAsync(NSUrl) Method

Definition

Reverts the UIDocument to the most recent document data stored on-disk.

public virtual System.Threading.Tasks.Task<bool> RevertToContentsOfUrlAsync (Foundation.NSUrl url);
abstract member RevertToContentsOfUrlAsync : Foundation.NSUrl -> System.Threading.Tasks.Task<bool>
override this.RevertToContentsOfUrlAsync : Foundation.NSUrl -> System.Threading.Tasks.Task<bool>

Parameters

url
NSUrl

URL address that indicates the location of a document file.

Returns

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

Remarks

This can be used from a background thread.

The RevertToContentsOfUrlAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

This can be used from a background thread.

Applies to