Jaa


PlatformAttribute Class

Definition

Declares the platform that a type should be supported in, when platform-specific metadata is produced.

public ref class PlatformAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
class PlatformAttribute final : Attribute
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
public sealed class PlatformAttribute : Attribute
function PlatformAttribute(platform)
Public NotInheritable Class PlatformAttribute
Inherits Attribute
Inheritance
PlatformAttribute
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced in v1.0)

Constructors

PlatformAttribute(Platform)

Creates and initializes a new instance of the attribute.

Applies to

See also