MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HasVariantAttribute attribute

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

Syntax


var hasVariantAttribute = new Windows.Foundation.Metadata.HasVariantAttribute();

Members

The HasVariantAttribute attribute has these types of members:

Constructors

The HasVariantAttribute attribute has these constructors.

ConstructorDescription
HasVariantAttribute Creates and initializes a new instance of the attribute.

 

Methods

The HasVariantAttribute attribute inherits methods from the Object class (C#/VB/C++).

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.FoundationContract, introduced version 1.0

Namespace

Windows.Foundation.Metadata
Windows::Foundation::Metadata [C++]

Metadata

Windows.Foundation.FoundationContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Foundation.Metadata
Windows::Foundation::Metadata [C++]

Metadata

Windows.winmd

Attributes

[AttributeUsage(4294967295)]
[Version(0x6020000)]

See also

Object
Attribute

 

 

Show:
© 2016 Microsoft