PlatformAttribute 類別

定義

宣告在產生平臺特定中繼資料時,應該在 中支援類型的平臺。

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
繼承
PlatformAttribute
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.FoundationContract (已於 v1.0 引進)

建構函式

PlatformAttribute(Platform)

建立並初始化 屬性的新實例。

適用於

另請參閱