// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
namespace System.Runtime.Versioning;
///
/// Records the operating system (and minimum version) that supports an API. Multiple
/// attributes can be applied to indicate support on multiple operating systems.
///
///
/// Callers can apply a
/// or use guards to prevent calls to APIs on unsupported operating systems.
/// A given platform should only be specified once.
///
[AttributeUsage(
AttributeTargets.Assembly |
AttributeTargets.Class |
AttributeTargets.Constructor |
AttributeTargets.Enum |
AttributeTargets.Event |
AttributeTargets.Field |
AttributeTargets.Interface |
AttributeTargets.Method |
AttributeTargets.Module |
AttributeTargets.Property |
AttributeTargets.Struct,
AllowMultiple = true,
Inherited = false)]
[Conditional("DEBUG")]
internal sealed class SupportedOSPlatformAttribute : OSPlatformAttribute
{
public SupportedOSPlatformAttribute(string platformName)
: base(platformName)
{
}
}