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()

创建并初始化 特性的新实例。

适用于

另请参阅