InstrumentationException 建構函式

定義

初始化 InstrumentationException 的新執行個體。 這是無參數建構函式。

多載

InstrumentationException()

初始化 InstrumentationException 類別的新執行個體。 這是無參數建構函式。

InstrumentationException(Exception)

使用造成目前例外狀況的 System.Exception,初始化新的 InstrumentationException 類別。

InstrumentationException(String)

使用描述例外狀況的訊息,初始化 InstrumentationException 類別的新執行個體。

InstrumentationException(SerializationInfo, StreamingContext)

使用序列化資訊,初始化 InstrumentationException 類別的新執行個體。

InstrumentationException(String, Exception)

使用指定的字串和例外狀況,初始化新的 InstrumentationException 類別。

InstrumentationException()

初始化 InstrumentationException 類別的新執行個體。 這是無參數建構函式。

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

適用於

InstrumentationException(Exception)

使用造成目前例外狀況的 System.Exception,初始化新的 InstrumentationException 類別。

public:
 InstrumentationException(Exception ^ innerException);
public InstrumentationException (Exception innerException);
new System.Management.Instrumentation.InstrumentationException : Exception -> System.Management.Instrumentation.InstrumentationException
Public Sub New (innerException As Exception)

參數

innerException
Exception

造成目前例外狀況的 Exception 執行個體。

適用於

InstrumentationException(String)

使用描述例外狀況的訊息,初始化 InstrumentationException 類別的新執行個體。

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

參數

message
String

說明例外狀況的訊息。

適用於

InstrumentationException(SerializationInfo, StreamingContext)

使用序列化資訊,初始化 InstrumentationException 類別的新執行個體。

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

參數

info
SerializationInfo

序列化或還原序列化物件所需要的資料。

context
StreamingContext

來源的描述和指定的序列化資料流的目的端。

適用於

InstrumentationException(String, Exception)

使用指定的字串和例外狀況,初始化新的 InstrumentationException 類別。

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

參數

message
String

說明例外狀況的訊息。

innerException
Exception

造成目前例外狀況的 Exception 執行個體。

適用於