StaticAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates an interface that contains only static methods.
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
- Inheritance
-
StaticAttribute
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.FoundationContract (introduced in v1.0)
|
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, Platform) |
Creates and initializes a new instance of the attribute. |
StaticAttribute(Type, UInt32, String) |
Creates and initializes a new instance of the attribute. |
StaticAttribute(Type, UInt32, Type) |
Creates and initializes a new instance of the attribute. |
StaticAttribute(Type, UInt32) |
Creates and initializes a new instance of the attribute. |