HasVariantAttribute HasVariantAttribute HasVariantAttribute HasVariantAttribute Class

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

Syntax

Declaration

public sealed class HasVariantAttributepublic sealed class HasVariantAttributePublic NotInheritable Class HasVariantAttributepublic sealed class HasVariantAttribute

Constructors summary

Creates and initializes a new instance of the attribute.

Constructors

  • HasVariantAttribute()
    HasVariantAttribute()
    HasVariantAttribute()
    HasVariantAttribute()

    Creates and initializes a new instance of the attribute.

    public HasVariantAttribute()public New()Public Sub New()public HasVariantAttribute()

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.FoundationContract (introduced v1)

Attributes

Windows.Foundation.Metadata.AttributeUsageAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Foundation.Metadata.dll