PreviousContractVersionAttribute Klasse

Definition

Gibt an, dass der Typ zuvor einem anderen API-Vertrag zugeordnet war.

public ref class PreviousContractVersionAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AllowMultiple]
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.InterfaceImpl | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.RuntimeClass | System.AttributeTargets.Struct)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
class PreviousContractVersionAttribute final : Attribute
[Windows.Foundation.Metadata.AllowMultiple]
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.InterfaceImpl | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.RuntimeClass | System.AttributeTargets.Struct)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
public sealed class PreviousContractVersionAttribute : Attribute
function PreviousContractVersionAttribute(contract, versionLow, versionHigh, newContract)
Public NotInheritable Class PreviousContractVersionAttribute
Inherits Attribute
Vererbung
PreviousContractVersionAttribute
Attribute

Windows-Anforderungen

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

Hinweise

Dieses Attribut ist vorhanden, wenn ein Typ von einem API-Vertrag in einen anderen verschoben wurde. Er drückt den Verlauf des Typs in Bezug auf die API-Verträge aus, in denen er vorhanden ist.

Konstruktoren

PreviousContractVersionAttribute(String, UInt32, UInt32)

Erstellt und initialisiert eine neue instance des Attributs.

PreviousContractVersionAttribute(String, UInt32, UInt32, String)

Erstellt und initialisiert eine neue instance des Attributs.

PreviousContractVersionAttribute(Type, UInt32, UInt32)

Erstellt und initialisiert eine neue instance des Attributs.

PreviousContractVersionAttribute(Type, UInt32, UInt32, Type)

Erstellt und initialisiert eine neue instance des Attributs.

Gilt für: