StaticAttribute 클래스

정의

정적 메서드만 포함하는 인터페이스를 나타냅니다.

public ref class StaticAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AllowMultiple]
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
class StaticAttribute final : Attribute
[Windows.Foundation.Metadata.AllowMultiple]
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
public sealed class StaticAttribute : Attribute
Public NotInheritable Class StaticAttribute
Inherits Attribute
상속
StaticAttribute
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.FoundationContract (v1.0에서 도입되었습니다.)

설명

StaticAttribute는 언어 프로젝션이 클래스의 정적 메서드로 제공하는 메서드가 있는 인터페이스를 지정합니다. 런타임 클래스는 0개 이상의 정적 특성을 지정할 수 있습니다.

런타임 클래스에는 클래스의 인스턴스를 생성할 수 있음을 나타내는 ActivatableAttribute 가 있을 수 있습니다. 또한 런타임 클래스에는 언어 프로젝션이 각 개체에 제공하는 instance 메서드가 instance 나타내는 instance 인터페이스가 있을 수 있습니다.

생성자

StaticAttribute(Type, UInt32)

특성의 새 instance 만들고 초기화합니다.

StaticAttribute(Type, UInt32, Platform)

특성의 새 instance 만들고 초기화합니다.

StaticAttribute(Type, UInt32, String)

특성의 새 instance 만들고 초기화합니다.

StaticAttribute(Type, UInt32, Type)

특성의 새 instance 만들고 초기화합니다.

적용 대상

추가 정보