ThreadSafeAttribute 클래스

정의

UIKit(iOS용) 또는 AppKit(macOS의 경우) 메서드 또는 클래스가 스레드로부터 안전하다는 것을 나타내는 System.Attribute 입니다.

public sealed class ThreadSafeAttribute : Attribute
type ThreadSafeAttribute = class
    inherit Attribute
상속
ThreadSafeAttribute

설명

이 특성은 적용된 클래스의 메서드 또는 적용된 메서드를 백그라운드 스레드에서 안전하게 호출할 수 있음을 알리는 데 사용됩니다.

특성은 UIKit/AppKit 클래스 및 UIKit/AppKit 형식의 모든 하위 클래스와만 관련이 있습니다. UIKit/AppKit 외부의 클래스 및 메서드에 이 메서드가 없는 것은 의도적입니다.

생성자

ThreadSafeAttribute()

새 ThreadSafe 특성을 초기화합니다.

ThreadSafeAttribute(Boolean)

새 ThreadSafe 특성을 초기화합니다.

속성

Safe

API가 스레드로부터 안전한지 여부입니다.

적용 대상