共用方式為


NSFileManager.SetAttributes 方法

定義

多載

SetAttributes(NSFileAttributes, String)
SetAttributes(NSDictionary, String, NSError)

嘗試在指定的路徑上設定檔案的屬性,並傳回成功或失敗,並設定 error 參數。

SetAttributes(NSFileAttributes, String, NSError)

SetAttributes(NSFileAttributes, String)

public bool SetAttributes (Foundation.NSFileAttributes attributes, string path);
member this.SetAttributes : Foundation.NSFileAttributes * string -> bool

參數

attributes
NSFileAttributes
path
String

傳回

適用於

SetAttributes(NSDictionary, String, NSError)

嘗試在指定的路徑上設定檔案的屬性,並傳回成功或失敗,並設定 error 參數。

[Foundation.Export("setAttributes:ofItemAtPath:error:")]
public virtual bool SetAttributes (Foundation.NSDictionary attributes, string path, out Foundation.NSError error);
abstract member SetAttributes : Foundation.NSDictionary * string *  -> bool
override this.SetAttributes : Foundation.NSDictionary * string *  -> bool

參數

attributes
NSDictionary
path
String
error
NSError

傳回

屬性

適用於

SetAttributes(NSFileAttributes, String, NSError)

public bool SetAttributes (Foundation.NSFileAttributes attributes, string path, out Foundation.NSError error);
member this.SetAttributes : Foundation.NSFileAttributes * string *  -> bool

參數

attributes
NSFileAttributes
path
String
error
NSError

傳回

適用於