UnsupportedOSPlatformAttribute Constructors

Definition

Overloads

UnsupportedOSPlatformAttribute(String)

Initializes a new instance of the UnsupportedOSPlatformAttribute attribute class for the specified unsupported OS platform.

UnsupportedOSPlatformAttribute(String, String)

Initializes a new instance of the UnsupportedOSPlatformAttribute attribute class for the specified unsupported OS platform with an additional message.

UnsupportedOSPlatformAttribute(String)

Source:
PlatformAttributes.cs
Source:
PlatformAttributes.cs
Source:
PlatformAttributes.cs

Initializes a new instance of the UnsupportedOSPlatformAttribute attribute class for the specified unsupported OS platform.

C#
public UnsupportedOSPlatformAttribute(string platformName);

Parameters

platformName
String

The unsupported OS platform name, optionally including a version.

Applies to

.NET 10 and other versions
Product Versions
.NET 5, 6, 7, 8, 9, 10

UnsupportedOSPlatformAttribute(String, String)

Source:
PlatformAttributes.cs
Source:
PlatformAttributes.cs
Source:
PlatformAttributes.cs

Initializes a new instance of the UnsupportedOSPlatformAttribute attribute class for the specified unsupported OS platform with an additional message.

C#
public UnsupportedOSPlatformAttribute(string platformName, string? message);

Parameters

platformName
String

The unsupported OS platform name, optionally including a version.

message
String

Additional message that mostly suggests a replacement for the unsupported API.

Applies to

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10