ContractVersionAttribute ContractVersionAttribute ContractVersionAttribute ContractVersionAttribute ContractVersionAttribute Class

Definition

Indicates the version of the API contract.

public : sealed class ContractVersionAttribute : Attribute
struct winrt::Windows::Foundation::Metadata::ContractVersionAttribute : Attribute
public sealed class ContractVersionAttribute : Attribute
Public NotInheritable Class ContractVersionAttribute Inherits Attribute
var contractVersionAttribute = new contractVersionAttribute(contract, version);
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) ContractVersionAttribute(String, UInt32) ContractVersionAttribute(String, UInt32)

Creates and initializes a new instance of the attribute.

ContractVersionAttribute(Type, UInt32) ContractVersionAttribute(Type, UInt32) ContractVersionAttribute(Type, UInt32) ContractVersionAttribute(Type, UInt32) ContractVersionAttribute(Type, UInt32)

Creates and initializes a new instance of the attribute.

ContractVersionAttribute(UInt32) ContractVersionAttribute(UInt32) ContractVersionAttribute(UInt32) ContractVersionAttribute(UInt32) ContractVersionAttribute(UInt32)

Creates and initializes a new instance of the attribute.