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


Indicates that the item is an instance of a variant IInspectable. Applies to method parameters, properties, and return values of types.

public : sealed class VariantAttribute : Attributepublic sealed class VariantAttribute : AttributePublic NotInheritable Class VariantAttribute 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)


VariantAttribute() VariantAttribute() VariantAttribute() VariantAttribute()

Creates and initializes a new instance of the attribute.

public : VariantAttribute()public VariantAttribute()Public Sub New()// You can use this method in JavaScript.

See Also