ContractVersionAttribute Constructors

Definition

Overloads

ContractVersionAttribute(UInt32)

Creates and initializes a new instance of the attribute.

ContractVersionAttribute(String, UInt32)

Creates and initializes a new instance of the attribute.

ContractVersionAttribute(Type, UInt32)

Creates and initializes a new instance of the attribute.

ContractVersionAttribute(UInt32)

Creates and initializes a new instance of the attribute.

public:
 ContractVersionAttribute(unsigned int version);
 ContractVersionAttribute(unsigned int version);
public ContractVersionAttribute(uint version);
function ContractVersionAttribute(version)
Public Sub New (version As UInteger)

Parameters

version
UInt32

The version of the API contract.

ContractVersionAttribute(String, UInt32)

Creates and initializes a new instance of the attribute.

public:
 ContractVersionAttribute(Platform::String ^ contract, unsigned int version);
 ContractVersionAttribute(winrt::hstring const & contract, unsigned int version);
public ContractVersionAttribute(string contract, uint version);
function ContractVersionAttribute(contract, version)
Public Sub New (contract As String, version As UInteger)

Parameters

contract
String

The type to associate with the API contract.

version
UInt32

The version of the API contract.

Remarks

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

ContractVersionAttribute(Type, UInt32)

Creates and initializes a new instance of the attribute.

public:
 ContractVersionAttribute(Platform::Type ^ contract, unsigned int version);
public ContractVersionAttribute(Type contract, uint version);
function ContractVersionAttribute(contract, version)
Public Sub New (contract As Type, version As UInteger)

Parameters

contract
Type

The type to associate with the API contract.

version
UInt32

The version of the API contract.

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.

Applies to