// #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 { /// /// 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. /// [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) { } } }