UnsupportedOSPlatformAttribute 构造函数

定义

重载

UnsupportedOSPlatformAttribute(String)

为指定的不受支持的 OS 平台初始化 UnsupportedOSPlatformAttribute 属性类的新实例。

UnsupportedOSPlatformAttribute(String, String)

使用附加消息为指定的不受支持的 OS 平台初始化 特性类的新实例 UnsupportedOSPlatformAttribute

UnsupportedOSPlatformAttribute(String)

为指定的不受支持的 OS 平台初始化 UnsupportedOSPlatformAttribute 属性类的新实例。

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

参数

platformName
String

不受支持的 OS 平台名称,可以选择包括版本。

适用于

UnsupportedOSPlatformAttribute(String, String)

使用附加消息为指定的不受支持的 OS 平台初始化 特性类的新实例 UnsupportedOSPlatformAttribute

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

参数

platformName
String

不受支持的 OS 平台名称,可以选择包括版本。

message
String

其他消息,主要建议替换不受支持的 API。

适用于