HasVariantAttribute Classe

Definizione

Indica che il tipo è un'istanza di una variante IInspectable. Si applica alle classi di runtime, alle interfacce e alle interfacce con parametri.

public ref class HasVariantAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.All)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
class HasVariantAttribute final : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.All)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.AttributeName("hasvariant")]
class HasVariantAttribute final : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.All)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
public sealed class HasVariantAttribute : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.All)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.AttributeName("hasvariant")]
public sealed class HasVariantAttribute : Attribute
function HasVariantAttribute()
Public NotInheritable Class HasVariantAttribute
Inherits Attribute
Ereditarietà
HasVariantAttribute
Attributi

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (è stato introdotto in v1.0)

Costruttori

HasVariantAttribute()

Crea e inizializza una nuova istanza dell'attributo .

Si applica a

Vedi anche