42 lines
1.7 KiB
C#
42 lines
1.7 KiB
C#
|
// <auto-generated/>
|
||
|
#pragma warning disable
|
||
|
#nullable enable annotations
|
||
|
|
||
|
// Licensed to the .NET Foundation under one or more agreements.
|
||
|
// The .NET Foundation licenses this file to you under the MIT license.
|
||
|
|
||
|
namespace System.Runtime.Versioning
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Records the operating system (and minimum version) that supports an API. Multiple attributes can be
|
||
|
/// applied to indicate support on multiple operating systems.
|
||
|
/// </summary>
|
||
|
/// <remarks>
|
||
|
/// Callers can apply a <see cref="global::System.Runtime.Versioning.SupportedOSPlatformAttribute " />
|
||
|
/// or use guards to prevent calls to APIs on unsupported operating systems.
|
||
|
///
|
||
|
/// A given platform should only be specified once.
|
||
|
/// </remarks>
|
||
|
[global::System.AttributeUsage(
|
||
|
global::System.AttributeTargets.Assembly |
|
||
|
global::System.AttributeTargets.Class |
|
||
|
global::System.AttributeTargets.Constructor |
|
||
|
global::System.AttributeTargets.Enum |
|
||
|
global::System.AttributeTargets.Event |
|
||
|
global::System.AttributeTargets.Field |
|
||
|
global::System.AttributeTargets.Interface |
|
||
|
global::System.AttributeTargets.Method |
|
||
|
global::System.AttributeTargets.Module |
|
||
|
global::System.AttributeTargets.Property |
|
||
|
global::System.AttributeTargets.Struct,
|
||
|
AllowMultiple = true, Inherited = false)]
|
||
|
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
|
||
|
[global::System.Diagnostics.Conditional("MULTI_TARGETING_SUPPORT_ATTRIBUTES")]
|
||
|
public sealed class SupportedOSPlatformAttribute : global::System.Attribute // OSPlatformAttribute
|
||
|
{
|
||
|
public SupportedOSPlatformAttribute(string platformName)
|
||
|
// : base(platformName)
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
}
|