NSFileManager.Remove 方法

定义

重载

Remove(String, NSError)
Remove(NSUrl, NSError)

尝试删除指定 URL 处的项,返回成功或失败并设置 error 参数。

Remove(String, NSError)

[Foundation.Export("removeItemAtPath:error:")]
public virtual bool Remove (string path, out Foundation.NSError error);
abstract member Remove : string *  -> bool
override this.Remove : string *  -> bool

参数

path
String

内容待定。

此参数可以为 null

error
NSError

返回

属性

适用于

Remove(NSUrl, NSError)

尝试删除指定 URL 处的项,返回成功或失败并设置 error 参数。

[Foundation.Export("removeItemAtURL:error:")]
public virtual bool Remove (Foundation.NSUrl url, out Foundation.NSError error);
abstract member Remove : Foundation.NSUrl *  -> bool
override this.Remove : Foundation.NSUrl *  -> bool

参数

url
NSUrl

内容待定。

此参数可以为 null

error
NSError

返回

属性

适用于