PreviousContractVersionAttribute Класс

Определение

Указывает, что тип ранее был связан с другим контрактом API.

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
Наследование
PreviousContractVersionAttribute
Атрибуты

Требования к Windows

Семейство устройств
Windows 10 (появилось в 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (появилось в v1.0)

Комментарии

Этот атрибут присутствует, если тип был перемещен из одного контракта API в другой тип. Он выражает журнал типа по отношению к контрактам API, в которых он существовал.

Конструкторы

PreviousContractVersionAttribute(String, UInt32, UInt32)

Создает и инициализирует новый экземпляр атрибута .

PreviousContractVersionAttribute(String, UInt32, UInt32, String)

Создает и инициализирует новый экземпляр атрибута .

PreviousContractVersionAttribute(Type, UInt32, UInt32)

Создает и инициализирует новый экземпляр атрибута .

PreviousContractVersionAttribute(Type, UInt32, UInt32, Type)

Создает и инициализирует новый экземпляр атрибута .

Применяется к