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()

來源:
WarningException.cs
來源:
WarningException.cs
來源:
WarningException.cs

初始化 WarningException 類別的新執行個體。

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

適用於

WarningException(String)

來源:
WarningException.cs
來源:
WarningException.cs
來源:
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)

來源:
WarningException.cs
來源:
WarningException.cs
來源:
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);
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);
new System.ComponentModel.WarningException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.WarningException
[<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
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

要用於還原序列化 (Deserialization) 的 SerializationInfo

context
StreamingContext

要用於還原序列化的目的端。

屬性

適用於

WarningException(String, Exception)

來源:
WarningException.cs
來源:
WarningException.cs
來源:
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)

來源:
WarningException.cs
來源:
WarningException.cs
來源:
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)

來源:
WarningException.cs
來源:
WarningException.cs
來源:
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

使用者要求說明時將會顯示的說明主題。

適用於