語言

SupportedOSPlatformGuardAttribute(String) 建構函式

定義

初始化指定支援作業系統平台的屬性類別新實例 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

該成員會守護支援的作業系統平台名稱,並可選擇包含版本。

適用於