InstrumentationBaseException 建構函式

定義

初始化 InstrumentationBaseException 的新執行個體。Initializes a new instance of the InstrumentationBaseException. 這是無參數建構函式。This is the parameterless constructor.

多載

InstrumentationBaseException()

初始化 InstrumentationBaseException 的新執行個體。Initializes a new instance of the InstrumentationBaseException. 類別的新執行個體。class. 這是無參數建構函式。This is the parameterless constructor.

InstrumentationBaseException(String)

使用描述例外狀況的訊息,初始化 InstrumentationBaseException 類別的新執行個體。Initializes a new instance of the InstrumentationBaseException class with a message that describes the exception.

InstrumentationBaseException(SerializationInfo, StreamingContext)

使用序列化資訊,初始化 InstrumentationBaseException 類別的新執行個體。Initializes a new instance of the InstrumentationBaseException class with serialization information.

InstrumentationBaseException(String, Exception)

使用指定的字串和例外狀況,初始化新的 InstrumentationBaseException 類別。Initializes a new InstrumentationBaseException class with the specified string and exception.

InstrumentationBaseException()

初始化 InstrumentationBaseException 的新執行個體。Initializes a new instance of the InstrumentationBaseException. 類別的新執行個體。class. 這是無參數建構函式。This is the parameterless constructor.

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

InstrumentationBaseException(String)

使用描述例外狀況的訊息,初始化 InstrumentationBaseException 類別的新執行個體。Initializes a new instance of the InstrumentationBaseException class with a message that describes the exception.

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

說明例外狀況的訊息。Message that describes the exception.

InstrumentationBaseException(SerializationInfo, StreamingContext)

使用序列化資訊,初始化 InstrumentationBaseException 類別的新執行個體。Initializes a new instance of the InstrumentationBaseException class with serialization information.

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

序列化或還原序列化物件所需要的資料。The data that is required to serialize or deserialize an object.

context
StreamingContext

來源的描述和指定的序列化資料流的目的端。Description of the source and destination of the specified serialized stream.

InstrumentationBaseException(String, Exception)

使用指定的字串和例外狀況,初始化新的 InstrumentationBaseException 類別。Initializes a new InstrumentationBaseException class with the specified string and exception.

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

說明例外狀況的訊息。Message that describes the exception.

innerException
Exception

造成目前例外狀況的 Exception 執行個體。The Exception instance that caused the current exception.

適用於