ContractVersionAttribute ContractVersionAttribute ContractVersionAttribute 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(String contract, UInt32 version)public ContractVersionAttribute(String contract, UInt32 version)Public Sub New(contract As String, version As UInt32)
Parameters
contract
System.String System.String System.String

The type to associate with the API contract.

version
System.UInt32 System.UInt32 System.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(Type contract, UInt32 version)public ContractVersionAttribute(Type contract, UInt32 version)Public Sub New(contract As Type, version As UInt32)
Parameters
contract
System.Type System.Type System.Type

The type to associate with the API contract.

version
System.UInt32 System.UInt32 System.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(UInt32 version)public ContractVersionAttribute(UInt32 version)Public Sub New(version As UInt32)
Parameters
version
System.UInt32 System.UInt32 System.UInt32

The version of the API contract.

Attributes