-
Notifications
You must be signed in to change notification settings - Fork 124
Expand file tree
/
Copy pathContractVersionAttribute.cs
More file actions
46 lines (40 loc) · 1.56 KB
/
ContractVersionAttribute.cs
File metadata and controls
46 lines (40 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Runtime.Versioning;
using WindowsRuntime;
#pragma warning disable IDE0060
namespace Windows.Foundation.Metadata;
/// <summary>
/// Indicates the version of the API contract.
/// </summary>
[WindowsRuntimeMetadata("Windows.Foundation.FoundationContract")]
[AttributeUsage(AttributeTargets.All, AllowMultiple = true)]
[SupportedOSPlatform("Windows10.0.10240.0")]
[ContractVersion(typeof(FoundationContract), 65536u)]
public sealed class ContractVersionAttribute : Attribute
{
/// <summary>
/// Creates a new <see cref="ContractVersionAttribute"/> instance with the specified parameters.
/// </summary>
/// <param name="version">The version of the API contract.</param>
public ContractVersionAttribute(uint version)
{
}
/// <summary>
/// Creates a new <see cref="ContractVersionAttribute"/> instance with the specified parameters.
/// </summary>
/// <param name="contract">The type to associate with the API contract.</param>
/// <param name="version">The version of the API contract.</param>
public ContractVersionAttribute(Type contract, uint version)
{
}
/// <summary>
/// Creates a new <see cref="ContractVersionAttribute"/> instance with the specified parameters.
/// </summary>
/// <param name="contract">The type to associate with the API contract.</param>
/// <param name="version">The version of the API contract.</param>
public ContractVersionAttribute(string contract, uint version)
{
}
}