HasVariantAttribute 類別

定義

表示類型是 Variant IInspectable的實例。 適用于執行時間類別、介面和參數化介面。

public ref class HasVariantAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.All)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
class HasVariantAttribute final : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.All)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.AttributeName("hasvariant")]
class HasVariantAttribute final : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.All)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
public sealed class HasVariantAttribute : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.All)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.AttributeName("hasvariant")]
public sealed class HasVariantAttribute : Attribute
function HasVariantAttribute()
Public NotInheritable Class HasVariantAttribute
Inherits Attribute
繼承
HasVariantAttribute
屬性

Windows 需求

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

建構函式

HasVariantAttribute()

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

適用於

另請參閱