PreviousContractVersionAttribute PreviousContractVersionAttribute PreviousContractVersionAttribute PreviousContractVersionAttribute Class

Definition

Indicates that the type was previously associated with a different API contract.

public : sealed class PreviousContractVersionAttribute : Attributepublic sealed class PreviousContractVersionAttribute : AttributePublic NotInheritable Class PreviousContractVersionAttribute Inherits Attribute// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)

Remarks

This attribute is present if a type has been moved from one API contract to another type. It expresses the history of the type in relation to the API contracts in which it has existed.

Constructors

PreviousContractVersionAttribute(String, UInt32, UInt32) PreviousContractVersionAttribute(String, UInt32, UInt32) PreviousContractVersionAttribute(String, UInt32, UInt32) PreviousContractVersionAttribute(String, UInt32, UInt32)

Creates and initializes a new instance of the attribute.

public : PreviousContractVersionAttribute(PlatForm::String contract, unsigned int versionLow, unsigned int versionHigh)public PreviousContractVersionAttribute(String contract, UInt32 versionLow, UInt32 versionHigh)Public Sub New(contract As String, versionLow As UInt32, versionHigh As UInt32)// You can use this method in JavaScript.
Parameters
contract
PlatForm::String String String String

The name of the previous contract.

versionLow
unsigned int UInt32 UInt32 UInt32

The first version of the previous contract to which the type was associated.

versionHigh
unsigned int UInt32 UInt32 UInt32

The last version of the previous contract to which the type was associated.

PreviousContractVersionAttribute(String, UInt32, UInt32, String) PreviousContractVersionAttribute(String, UInt32, UInt32, String) PreviousContractVersionAttribute(String, UInt32, UInt32, String) PreviousContractVersionAttribute(String, UInt32, UInt32, String)

Creates and initializes a new instance of the attribute.

public : PreviousContractVersionAttribute(PlatForm::String contract, unsigned int versionLow, unsigned int versionHigh, PlatForm::String newContract)public PreviousContractVersionAttribute(String contract, UInt32 versionLow, UInt32 versionHigh, String newContract)Public Sub New(contract As String, versionLow As UInt32, versionHigh As UInt32, newContract As String)// You can use this method in JavaScript.
Parameters
contract
PlatForm::String String String String

The name of the previous contract.

versionLow
unsigned int UInt32 UInt32 UInt32

The first version of the previous contract to which the type was associated.

versionHigh
unsigned int UInt32 UInt32 UInt32

The last version of the previous contract to which the type was associated.

newContract
PlatForm::String String String String

The name of the new contract to which the type is associated.