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.

C#
public ContractVersionAttribute(uint version);

Parameters

version
UInt32

The version of the API contract.

Applies to

WinRT Build 26100 ve diğer sürümler
Ürün Sürümler
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

ContractVersionAttribute(String, UInt32)

Creates and initializes a new instance of the attribute.

C#
public ContractVersionAttribute(string contract, uint version);

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.

Applies to

WinRT Build 26100 ve diğer sürümler
Ürün Sürümler
WinRT Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

ContractVersionAttribute(Type, UInt32)

Creates and initializes a new instance of the attribute.

C#
public ContractVersionAttribute(Type contract, uint version);

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

WinRT Build 26100 ve diğer sürümler
Ürün Sürümler
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100