UIDocumentBrowserViewController.ImportDocument 方法

定义

导入 处 documentURL 的文档以与 相邻 neighbourUrl

[Foundation.Export("importDocumentAtURL:nextToDocumentAtURL:mode:completionHandler:")]
public virtual void ImportDocument (Foundation.NSUrl documentUrl, Foundation.NSUrl neighbourUrl, UIKit.UIDocumentBrowserImportMode importMode, Action<Foundation.NSUrl,Foundation.NSError> completion);
abstract member ImportDocument : Foundation.NSUrl * Foundation.NSUrl * UIKit.UIDocumentBrowserImportMode * Action<Foundation.NSUrl, Foundation.NSError> -> unit
override this.ImportDocument : Foundation.NSUrl * Foundation.NSUrl * UIKit.UIDocumentBrowserImportMode * Action<Foundation.NSUrl, Foundation.NSError> -> unit

参数

documentUrl
NSUrl

文档的当前位置。

neighbourUrl
NSUrl

同一文件提供程序中文档的 URL。

importMode
UIDocumentBrowserImportMode

文档导入模式。

completion
Action<NSUrl,NSError>

操作完成后要运行的处理程序。 如果) 出现错误, null 处理程序将接收导入的 URL (,如果) 没有错误,则 (null 接收错误。

属性

适用于