แก้ไข

แชร์ผ่าน


InstrumentationException Constructors

Definition

Initializes a new instance of the InstrumentationException. This is the parameterless constructor.

Overloads

InstrumentationException()

Initializes a new instance of the InstrumentationException class. This is the parameterless constructor.

InstrumentationException(Exception)

Initializes a new InstrumentationException class with the System.Exception that caused the current exception.

InstrumentationException(String)

Initializes a new instance of the InstrumentationException class with a message that describes the exception.

InstrumentationException(SerializationInfo, StreamingContext)

Initializes a new instance of the InstrumentationException class with serialization information.

InstrumentationException(String, Exception)

Initializes a new InstrumentationException class with the specified string and exception.

InstrumentationException()

Initializes a new instance of the InstrumentationException class. This is the parameterless constructor.

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

Applies to

InstrumentationException(Exception)

Initializes a new InstrumentationException class with the System.Exception that caused the current exception.

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

Parameters

innerException
Exception

The Exception instance that caused the current exception.

Applies to

InstrumentationException(String)

Initializes a new instance of the InstrumentationException class with a message that describes the exception.

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)

Parameters

message
String

Message that describes the exception.

Applies to

InstrumentationException(SerializationInfo, StreamingContext)

Initializes a new instance of the InstrumentationException class with serialization information.

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)

Parameters

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.

Applies to

InstrumentationException(String, Exception)

Initializes a new InstrumentationException class with the specified string and exception.

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)

Parameters

message
String

Message that describes the exception.

innerException
Exception

The Exception instance that caused the current exception.

Applies to