Delen via


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(uint32_t const& version);
public ContractVersionAttribute(uint version);
function ContractVersionAttribute(version)
Public Sub New (version As UInteger)

Parameters

version
UInt32

unsigned int

uint32_t

The version of the API contract.

Applies to

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, uint32_t const& version);
public ContractVersionAttribute(string contract, uint version);
function ContractVersionAttribute(contract, version)
Public Sub New (contract As String, version As UInteger)

Parameters

contract
String

Platform::String

winrt::hstring

The type to associate with the API contract.

version
UInt32

unsigned int

uint32_t

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.

Applies to

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
TypeName Type

The type to associate with the API contract.

version
UInt32

unsigned int

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