共用方式為


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

傳回

屬性

適用於