System.Runtime.Versioning.SupportedOSPlatformAttribute sealed class SupportedOSPlatformAttribute : Attribute Records the operating system (and minimum version) that supports an API. Multiple attributes can be applied to indicate support on multiple operating systems. Documentation Code public SupportedOSPlatformAttribute(string platformName)