Breyta

Deila með


InstrumentationBaseException Constructors

Definition

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

Overloads

InstrumentationBaseException()

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

InstrumentationBaseException(String)

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

InstrumentationBaseException(SerializationInfo, StreamingContext)

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

InstrumentationBaseException(String, Exception)

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

InstrumentationBaseException()

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

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

Applies to

InstrumentationBaseException(String)

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)

Parameters

message
String

Message that describes the exception.

Applies to

InstrumentationBaseException(SerializationInfo, StreamingContext)

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)

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

InstrumentationBaseException(String, Exception)

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)

Parameters

message
String

Message that describes the exception.

innerException
Exception

The Exception instance that caused the current exception.

Applies to