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
导致当前异常的异常实例。The Exception instance that caused the current exception.