SupportedOSPlatformAttribute(String) 建構函式

定義

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

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

參數

platformName
String

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

適用於