Düzenle

Aracılığıyla paylaş


NSFileManager.SetAttributes Method

Definition

Overloads

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

Attempts to set the attributes of the file at the specified path, returning success or failure and setting the error parameter.

SetAttributes(NSFileAttributes, String, NSError)

SetAttributes(NSFileAttributes, String)

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

Parameters

attributes
NSFileAttributes
path
String

Returns

Applies to

SetAttributes(NSDictionary, String, NSError)

Attempts to set the attributes of the file at the specified path, returning success or failure and setting the error parameter.

[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

Parameters

attributes
NSDictionary
path
String
error
NSError

Returns

Attributes

Applies to

SetAttributes(NSFileAttributes, String, NSError)

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

Parameters

attributes
NSFileAttributes
path
String
error
NSError

Returns

Applies to