Windows Dev Center

StaticAttribute attribute

Indicates an interface that contains only static methods.

Syntax


public ref class StaticAttribute sealed : Attribute

Members

The StaticAttribute attribute has these types of members:

Constructors

The StaticAttribute attribute has these constructors.

ConstructorDescription
StaticAttribute(Type, UInt32) Creates and initializes a new instance of the attribute.
StaticAttribute(Type, UInt32, Platform) Creates and initializes a new instance of the attribute.

 

Methods

The StaticAttribute attribute inherits methods from the Object class (C#/VB/C++).

Remarks

The StaticAttribute specifies an interface with methods that language projections supply as static methods of the class. A runtime class may specify zero or more static attributes.

A runtime class may have an ActivatableAttribute to indicate that instances of the class can be constructed. Also, a runtime class may have instance interfaces, which indicate the instance methods that language projections supply on each object instance.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.FoundationContract, introduced version 1.0

Namespace

Windows.Foundation.Metadata
Windows::Foundation::Metadata [C++]

Metadata

Windows.Foundation.FoundationContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Foundation.Metadata
Windows::Foundation::Metadata [C++]

Metadata

Windows.winmd

Attributes

[AllowMultiple()]
[AttributeUsage(512)]
[Version(0x6020000)]

See also

Object
Attribute
ActivatableAttribute

 

 

Show:
© 2015 Microsoft