VariantAttribute クラス

定義

項目がバリアント IInspectable のインスタンスであることを示します。 型のメソッド パラメーター、プロパティ、および戻り値に適用されます。

public ref class VariantAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
class VariantAttribute final : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.AttributeName("variant")]
class VariantAttribute final : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
public sealed class VariantAttribute : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.AttributeName("variant")]
public sealed class VariantAttribute : Attribute
function VariantAttribute()
Public NotInheritable Class VariantAttribute
Inherits Attribute
継承
VariantAttribute
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.FoundationContract (v1.0 で導入)

コンストラクター

VariantAttribute()

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

適用対象

こちらもご覧ください