語言

ObsoletedOSPlatformAttribute 建構函式

定義

多載

名稱 Description
ObsoletedOSPlatformAttribute(String)

初始化該類別的新實例 ObsoletedOSPlatformAttribute ,以指定已淘汰的作業系統平台。

ObsoletedOSPlatformAttribute(String, String)

初始化指定已淘汰作業系統平台屬性類別的新實例 ObsoletedOSPlatformAttribute ,並附加訊息。

ObsoletedOSPlatformAttribute(String)

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

初始化該類別的新實例 ObsoletedOSPlatformAttribute ,以指定已淘汰的作業系統平台。

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

參數

platformName
String

已淘汰的作業系統平台名稱,並可選擇包含版本。

適用於

ObsoletedOSPlatformAttribute(String, String)

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

初始化指定已淘汰作業系統平台屬性類別的新實例 ObsoletedOSPlatformAttribute ,並附加訊息。

public:
 ObsoletedOSPlatformAttribute(System::String ^ platformName, System::String ^ message);
public ObsoletedOSPlatformAttribute(string platformName, string? message);
new System.Runtime.Versioning.ObsoletedOSPlatformAttribute : string * string -> System.Runtime.Versioning.ObsoletedOSPlatformAttribute
Public Sub New (platformName As String, message As String)

參數

platformName
String

已淘汰的作業系統平台名稱,並可選擇包含版本。

message
String

關於淘汰的額外資訊,例如,對已淘汰 API 的建議替代方案。

適用於