다음을 통해 공유


NSFileManager.SetAttributes 메서드

정의

오버로드

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

지정된 경로에서 파일의 특성을 설정하여 성공 또는 실패를 반환하고 오류 매개 변수를 설정하려고 시도합니다.

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)

지정된 경로에서 파일의 특성을 설정하여 성공 또는 실패를 반환하고 오류 매개 변수를 설정하려고 시도합니다.

[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

반환

적용 대상