HasVariantAttribute クラス

定義

型がバリアント 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()

属性の新しいインスタンスを作成して初期化します。

適用対象

こちらもご覧ください