ObsoletedOSPlatformAttribute 建構函式

定義

多載

ObsoletedOSPlatformAttribute(String)

針對指定的過時 OS 平臺,初始化 類別的新實例 ObsoletedOSPlatformAttribute

ObsoletedOSPlatformAttribute(String, String)

使用額外的訊息,初始化指定已過時 OS 平臺之屬性類別的新實例 ObsoletedOSPlatformAttribute

ObsoletedOSPlatformAttribute(String)

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

針對指定的過時 OS 平臺,初始化 類別的新實例 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

過時的 OS 平臺名稱,選擇性地包含版本。

適用於

ObsoletedOSPlatformAttribute(String, String)

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

使用額外的訊息,初始化指定已過時 OS 平臺之屬性類別的新實例 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

過時的 OS 平臺名稱,選擇性地包含版本。

message
String

例如,已淘汰 API 的建議替代方式,有關 obsoletion 的其他資訊。

適用於