语言

WarningException 构造函数

定义

初始化 WarningException 类的新实例。

重载

名称 说明
WarningException()

初始化 WarningException 类的新实例。

WarningException(String)

使用指定的消息和无帮助文件初始化类的新实例 WarningException 。

WarningException(SerializationInfo, StreamingContext)
已过时.

使用指定的序列化数据和上下文初始化类的新实例 WarningException 。

WarningException(String, Exception)

使用指定的详细说明和指定的异常初始化类的新实例 WarningException 。

WarningException(String, String)

使用指定的消息和对指定帮助文件的访问权限初始化类的新实例 WarningException 。

WarningException(String, String, String)

使用指定的消息初始化类的新实例 WarningException ,并有权访问指定的帮助文件和主题。

WarningException()

Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs

初始化 WarningException 类的新实例。

public:
 WarningException();
public WarningException();
Public Sub New ()

适用于

WarningException(String)

Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs

使用指定的消息和无帮助文件初始化类的新实例 WarningException 。

public:
 WarningException(System::String ^ message);
public WarningException(string? message);
public WarningException(string message);
new System.ComponentModel.WarningException : string -> System.ComponentModel.WarningException
Public Sub New (message As String)

参数

message
String

要显示给最终用户的消息。

适用于

WarningException(SerializationInfo, StreamingContext)

Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs

注意

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

使用指定的序列化数据和上下文初始化类的新实例 WarningException 。

protected:
 WarningException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected WarningException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected WarningException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.ComponentModel.WarningException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.WarningException
new System.ComponentModel.WarningException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.WarningException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

SerializationInfo用于反序列化。

context
StreamingContext

要用于反序列化的目标。

特性

适用于

WarningException(String, Exception)

Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs

使用指定的详细说明和指定的异常初始化类的新实例 WarningException 。

public:
 WarningException(System::String ^ message, Exception ^ innerException);
public WarningException(string? message, Exception? innerException);
public WarningException(string message, Exception innerException);
new System.ComponentModel.WarningException : string * Exception -> System.ComponentModel.WarningException
Public Sub New (message As String, innerException As Exception)

参数

message
String

错误的详细说明。

innerException
Exception

对此异常原因的内部异常的引用。

适用于

WarningException(String, String)

Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs

使用指定的消息和对指定帮助文件的访问权限初始化类的新实例 WarningException 。

public:
 WarningException(System::String ^ message, System::String ^ helpUrl);
public WarningException(string? message, string? helpUrl);
public WarningException(string message, string helpUrl);
new System.ComponentModel.WarningException : string * string -> System.ComponentModel.WarningException
Public Sub New (message As String, helpUrl As String)

参数

message
String

要显示给最终用户的消息。

helpUrl
String

用户请求帮助时显示的帮助文件。

适用于

WarningException(String, String, String)

Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs
Source:
WarningException.cs

使用指定的消息初始化类的新实例 WarningException ,并有权访问指定的帮助文件和主题。

public:
 WarningException(System::String ^ message, System::String ^ helpUrl, System::String ^ helpTopic);
public WarningException(string? message, string? helpUrl, string? helpTopic);
public WarningException(string message, string helpUrl, string helpTopic);
new System.ComponentModel.WarningException : string * string * string -> System.ComponentModel.WarningException
Public Sub New (message As String, helpUrl As String, helpTopic As String)

参数

message
String

要显示给最终用户的消息。

helpUrl
String

用户请求帮助时显示的帮助文件。

helpTopic
String

用户请求帮助时显示的帮助主题。

适用于