語言

InstrumentationBaseException 建構函式

定義

初始化一個新的實例。InstrumentationBaseException 這就是無參數建構子。

多載

名稱 Description
InstrumentationBaseException()

初始化一個新的實例。InstrumentationBaseException 階級。 這就是無參數建構子。

InstrumentationBaseException(String)

初始化該類別的新實例 InstrumentationBaseException ,並以描述例外的訊息。

InstrumentationBaseException(SerializationInfo, StreamingContext)

初始化一個新的類別實例 InstrumentationBaseException ,並附有序列化資訊。

InstrumentationBaseException(String, Exception)

初始化 InstrumentationBaseException 一個新類別,使用指定的字串與例外。

InstrumentationBaseException()

初始化一個新的實例。InstrumentationBaseException 階級。 這就是無參數建構子。

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

適用於

InstrumentationBaseException(String)

初始化該類別的新實例 InstrumentationBaseException ,並以描述例外的訊息。

public:
 InstrumentationBaseException(System::String ^ message);
public InstrumentationBaseException(string message);
new System.Management.Instrumentation.InstrumentationBaseException : string -> System.Management.Instrumentation.InstrumentationBaseException
Public Sub New (message As String)

參數

message
String

說明例外狀況的訊息。

適用於

InstrumentationBaseException(SerializationInfo, StreamingContext)

初始化一個新的類別實例 InstrumentationBaseException ,並附有序列化資訊。

protected:
 InstrumentationBaseException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected InstrumentationBaseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Management.Instrumentation.InstrumentationBaseException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Instrumentation.InstrumentationBaseException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

這些資料是用來序列化或反序列化物件所需的資料。

context
StreamingContext

指定序列化串流的來源與目的地描述。

適用於

InstrumentationBaseException(String, Exception)

初始化 InstrumentationBaseException 一個新類別,使用指定的字串與例外。

public:
 InstrumentationBaseException(System::String ^ message, Exception ^ innerException);
public InstrumentationBaseException(string message, Exception innerException);
new System.Management.Instrumentation.InstrumentationBaseException : string * Exception -> System.Management.Instrumentation.InstrumentationBaseException
Public Sub New (message As String, innerException As Exception)

參數

message
String

說明例外狀況的訊息。

innerException
Exception

就是導致目前例外的例外實例。

適用於