Has​Variant​Attribute Has​Variant​Attribute Has​Variant​Attribute Has​Variant​Attribute Class


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

public : sealed class HasVariantAttribute : Attributepublic sealed class HasVariantAttribute : AttributePublic NotInheritable Class HasVariantAttribute Inherits Attribute// You can use this class in JavaScript.
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()// You can use this method in JavaScript.

See Also