UnsupportedOSPlatformGuardAttribute(String) 建構函式

定義

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

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

參數

platformName
String

不支援的 OS 平臺名稱,屬性化成員會受到防護,選擇性地包含版本。

適用於