StaticAttribute attribute

Applies to Windows and Windows Phone

Indicates an interface that contains only static methods.

Syntax

Public NotInheritable Class StaticAttribute
    Inherits Attribute

Attributes

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

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

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

See also

Attribute
ActivatableAttribute

 

 

Show:
© 2014 Microsoft