VariantAttribute VariantAttribute VariantAttribute VariantAttribute Class

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

Syntax

Declaration

public sealed class VariantAttributepublic sealed class VariantAttributePublic NotInheritable Class VariantAttribute

Constructors summary

Creates and initializes a new instance of the attribute.

Constructors

  • VariantAttribute()
    VariantAttribute()
    VariantAttribute()
    VariantAttribute()

    Creates and initializes a new instance of the attribute.

    public VariantAttribute()public VariantAttribute()Public Function VariantAttribute() As

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.FoundationContract (introduced v1)

Attributes

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

Details

Assembly

Windows.Foundation.Metadata.dll