ObsoletedOSPlatformAttribute 构造函数

定义

重载

名称 说明
ObsoletedOSPlatformAttribute(String)

为指定的已过时 OS 平台初始化类的新实例 ObsoletedOSPlatformAttribute

ObsoletedOSPlatformAttribute(String, String)

使用附加消息初始化指定已过时 OS 平台的属性类的新实例 ObsoletedOSPlatformAttribute

ObsoletedOSPlatformAttribute(String)

Source:
PlatformAttributes.cs
Source:
PlatformAttributes.cs
Source:
PlatformAttributes.cs
Source:
PlatformAttributes.cs
Source:
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)

Source:
PlatformAttributes.cs
Source:
PlatformAttributes.cs
Source:
PlatformAttributes.cs
Source:
PlatformAttributes.cs
Source:
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 的其他信息,例如,建议的替代方法已过时的 API。

适用于