HasVariantAttribute Klasse

Definition

Gibt an, dass der Typ ein instance einer Variante IInspectable ist. Gilt für Laufzeitklassen, Schnittstellen und parametrisierte Schnittstellen.

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
Vererbung
HasVariantAttribute
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (eingeführt in v1.0)

Konstruktoren

HasVariantAttribute()

Erstellt und initialisiert eine neue instance des Attributs.

Gilt für:

Weitere Informationen