UnsupportedOSPlatformAttribute 建構函式

定義

多載

UnsupportedOSPlatformAttribute(String)

為指定且不支援的 OS 平台初始化 UnsupportedOSPlatformAttribute 屬性類別的新執行個體。

UnsupportedOSPlatformAttribute(String, String)

使用額外的訊息,為指定的不支援的 OS 平臺初始化 屬性類別的新實例 UnsupportedOSPlatformAttribute

UnsupportedOSPlatformAttribute(String)

來源:
PlatformAttributes.cs
來源:
PlatformAttributes.cs
來源:
PlatformAttributes.cs

為指定且不支援的 OS 平台初始化 UnsupportedOSPlatformAttribute 屬性類別的新執行個體。

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)

參數

platformName
String

不支援的 OS 平台名稱,可選擇是否包含版本。

適用於

UnsupportedOSPlatformAttribute(String, String)

來源:
PlatformAttributes.cs
來源:
PlatformAttributes.cs
來源:
PlatformAttributes.cs

使用額外的訊息,為指定的不支援的 OS 平臺初始化 屬性類別的新實例 UnsupportedOSPlatformAttribute

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)

參數

platformName
String

不支援的 OS 平台名稱,可選擇是否包含版本。

message
String

大部分建議取代不支援之 API 的其他訊息。

適用於