UIDocumentBrowserViewController.ImportDocument 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 位於 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
檔匯入模式。
作業完成之後要執行的處理常式。 如果發生錯誤) ,處理常式就會收到匯入的 URL (null
,如果沒有任何錯誤) ,則會收到錯誤 (null
。
- 屬性