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

导致当前异常的异常实例。

适用于

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

导致当前异常的异常实例。

适用于