SupportedOSPlatformGuardAttribute sealed class SupportedOSPlatformGuardAttribute : OSPlatformAttribute Annotates a custom guard field, property or method with a supported platform name and optional version. Multiple attributes can be applied to indicate guard for multiple supported platforms. Documentation Code public SupportedOSPlatformGuardAttribute(string platformName)