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.

public:
 UnsupportedOSPlatformAttribute(System::String ^ platformName);
public UnsupportedOSPlatformAttribute (string platformName);
new System.Runtime.Versioning.UnsupportedOSPlatformAttribute : string -> System.Runtime.Versioning.UnsupportedOSPlatformAttribute
Public Sub New (platformName As String)

Parameters

platformName
String

The unsupported OS platform name, optionally including a version.

Applies to

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.

public:
 UnsupportedOSPlatformAttribute(System::String ^ platformName, System::String ^ message);
public UnsupportedOSPlatformAttribute (string platformName, string? message);
new System.Runtime.Versioning.UnsupportedOSPlatformAttribute : string * string -> System.Runtime.Versioning.UnsupportedOSPlatformAttribute
Public Sub New (platformName As String, message As String)

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