PlatformAttribute Klasse

Definition

Deklariert die Plattform, in der ein Typ unterstützt werden soll, wenn plattformspezifische Metadaten erstellt werden.

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
Vererbung
PlatformAttribute
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (eingeführt in v1.0)

Konstruktoren

PlatformAttribute(Platform)

Erstellt und initialisiert eine neue instance des Attributs.

Gilt für:

Weitere Informationen