StaticAttribute StaticAttribute StaticAttribute StaticAttribute StaticAttribute Class

Definition

Indicates an interface that contains only static methods.

public : sealed class StaticAttribute : Attribute
struct winrt::Windows::Foundation::Metadata::StaticAttribute : Attribute
public sealed class StaticAttribute : Attribute
Public NotInheritable Class StaticAttribute Inherits Attribute
var staticAttribute = new staticAttribute(type, version);
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)

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.

Constructors

StaticAttribute(Type, UInt32) StaticAttribute(Type, UInt32) StaticAttribute(Type, UInt32) StaticAttribute(Type, UInt32) StaticAttribute(Type, UInt32)

Creates and initializes a new instance of the attribute.

StaticAttribute(Type, UInt32, String) StaticAttribute(Type, UInt32, String) StaticAttribute(Type, UInt32, String) StaticAttribute(Type, UInt32, String) StaticAttribute(Type, UInt32, String)

Creates and initializes a new instance of the attribute.

StaticAttribute(Type, UInt32, Platform) StaticAttribute(Type, UInt32, Platform) StaticAttribute(Type, UInt32, Platform) StaticAttribute(Type, UInt32, Platform) StaticAttribute(Type, UInt32, Platform)

Creates and initializes a new instance of the attribute.

See Also