NSFileManager.Move 方法

定义

重载

Move(NSUrl, NSUrl, NSError)

同步尝试将文件从 srcUrl 移动到 dstUrl,返回成功或失败并设置 error 参数。

Move(String, String, NSError)

Move(NSUrl, NSUrl, NSError)

同步尝试将文件从 srcUrl 移动到 dstUrl,返回成功或失败并设置 error 参数。

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

参数

srcUrl
NSUrl
dstUrl
NSUrl
error
NSError

返回

属性

适用于

Move(String, String, NSError)

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

参数

srcPath
String
dstPath
String
error
NSError

返回

属性

适用于