SupportedOSPlatformGuardAttribute(String) 建構函式

定義

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

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

參數

platformName
String

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

適用於