ContractVersionAttribute Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
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
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 |
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
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 |
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
- 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
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 |