Contract​Version​Attribute Contract​Version​Attribute Contract​Version​Attribute Class

Definition

Indicates the version of the API contract.

public : sealed class ContractVersionAttribute : Attributepublic sealed class ContractVersionAttribute : AttributePublic NotInheritable Class ContractVersionAttribute Inherits Attribute
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)

Constructors

ContractVersionAttribute(String, UInt32) ContractVersionAttribute(String, UInt32) ContractVersionAttribute(String, UInt32)

Creates and initializes a new instance of the attribute.

public : ContractVersionAttribute(PlatForm::String contract, unsigned int version)public ContractVersionAttribute(String contract, UInt32 version)Public Sub New(contract As String, version As UInt32)
Parameters
contract
PlatForm::String String String

The type to associate with the API contract.

version
unsigned int UInt32 UInt32

The version of the API contract.

Attributes

Remarks

This constructor applies to a type with the ApiContractAttribute and specifies the contract version of that API contract.

ContractVersionAttribute(Type, UInt32) ContractVersionAttribute(Type, UInt32) ContractVersionAttribute(Type, UInt32)

Creates and initializes a new instance of the attribute.

public : ContractVersionAttribute(PlatForm::Type contract, unsigned int version)public ContractVersionAttribute(Type contract, UInt32 version)Public Sub New(contract As Type, version As UInt32)
Parameters
contract
PlatForm::Type Type Type

The type to associate with the API contract.

version
unsigned int UInt32 UInt32

The version of the API contract.

Attributes

Remarks

This constructor applies to any type that does not have the ApiContractAttribute and indicates the API contract version in which this type was added to the specified API contract.

ContractVersionAttribute(UInt32) ContractVersionAttribute(UInt32) ContractVersionAttribute(UInt32)

Creates and initializes a new instance of the attribute.

public : ContractVersionAttribute(unsigned int version)public ContractVersionAttribute(UInt32 version)Public Sub New(version As UInt32)
Parameters
version
unsigned int UInt32 UInt32

The version of the API contract.

Attributes