PlatformAttribute PlatformAttribute PlatformAttribute PlatformAttribute PlatformAttribute Class

Definition

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

public : sealed class PlatformAttribute : Attribute
struct winrt::Windows::Foundation::Metadata::PlatformAttribute : Attribute
public sealed class PlatformAttribute : Attribute
Public NotInheritable Class PlatformAttribute Inherits Attribute
var platformAttribute = new platformAttribute(platform);
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)

Constructors

PlatformAttribute(Platform) PlatformAttribute(Platform) PlatformAttribute(Platform) PlatformAttribute(Platform) PlatformAttribute(Platform)

Creates and initializes a new instance of the attribute.

See Also