Edytuj

Udostępnij za pośrednictwem


UIDocumentBrowserViewController.ImportDocumentAsync Method

Definition

Imports the document at documentURL to be ajacent to neighbourUrl.

public virtual System.Threading.Tasks.Task<Foundation.NSUrl> ImportDocumentAsync (Foundation.NSUrl documentUrl, Foundation.NSUrl neighbourUrl, UIKit.UIDocumentBrowserImportMode importMode);
abstract member ImportDocumentAsync : Foundation.NSUrl * Foundation.NSUrl * UIKit.UIDocumentBrowserImportMode -> System.Threading.Tasks.Task<Foundation.NSUrl>
override this.ImportDocumentAsync : Foundation.NSUrl * Foundation.NSUrl * UIKit.UIDocumentBrowserImportMode -> System.Threading.Tasks.Task<Foundation.NSUrl>

Parameters

documentUrl
NSUrl

The document's current location.

neighbourUrl
NSUrl

The url of a document in the same file provider.

importMode
UIDocumentBrowserImportMode

The document import mode.

Returns

A task that represents the asynchronous ImportDocument operation. The value of the TResult parameter is of type System.Action<Foundation.NSUrl,Foundation.NSError>.

Remarks

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

To be added.

Applies to