HasVariantAttribute HasVariantAttribute HasVariantAttribute HasVariantAttribute Class


Indicates that the type is an instance of a variant IInspectable. Applies to runtime classes, interfaces, and parameterized interfaces.

public : sealed class HasVariantAttribute : Attribute
public sealed class HasVariantAttribute : Attribute
Public NotInheritable Class HasVariantAttribute Inherits Attribute
var hasVariantAttribute = new hasVariantAttribute();
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)


HasVariantAttribute() HasVariantAttribute() HasVariantAttribute() HasVariantAttribute()

Creates and initializes a new instance of the attribute.

public : HasVariantAttribute()
public HasVariantAttribute()
Public Sub New()
var hasVariantAttribute = new hasVariantAttribute();

See Also