UIDocument.RevertToContentsOfUrlAsync(NSUrl) 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.
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.