共用方式為


NSFileManager.Copy 方法

定義

多載

Copy(NSUrl, NSUrl, NSError)

嘗試將資料從 srcUrl 複製到 dstUrl,如果發生任何) (錯誤,則傳回成功或失敗和編碼錯誤。

Copy(String, String, NSError)

建立此物件的複本,如果引數為 Null,請從指定的區域或預設區域配置記憶體。

Copy(NSUrl, NSUrl, NSError)

嘗試將資料從 srcUrl 複製到 dstUrl,如果發生任何) (錯誤,則傳回成功或失敗和編碼錯誤。

[Foundation.Export("copyItemAtURL:toURL:error:")]
public virtual bool Copy (Foundation.NSUrl srcUrl, Foundation.NSUrl dstUrl, out Foundation.NSError error);
override this.Copy : Foundation.NSUrl * Foundation.NSUrl *  -> bool

參數

srcUrl
NSUrl
dstUrl
NSUrl
error
NSError

傳回

屬性

適用於

Copy(String, String, NSError)

建立此物件的複本,如果引數為 Null,請從指定的區域或預設區域配置記憶體。

[Foundation.Export("copyItemAtPath:toPath:error:")]
public virtual bool Copy (string srcPath, string dstPath, out Foundation.NSError error);
override this.Copy : string * string *  -> bool

參數

srcPath
String
dstPath
String
error
NSError

傳回

屬性

適用於