InstrumentationException Konstruktorer

Definition

Initierar en ny instans av InstrumentationException. Det här är den parameterlösa konstruktorn.

Överlagringar

Name Description
InstrumentationException()

Initierar en ny instans av InstrumentationException klassen. Det här är den parameterlösa konstruktorn.

InstrumentationException(Exception)

Initierar en ny InstrumentationException klass med System.Exception som orsakade det aktuella undantaget.

InstrumentationException(String)

Initierar en ny instans av InstrumentationException klassen med ett meddelande som beskriver undantaget.

InstrumentationException(SerializationInfo, StreamingContext)

Initierar en ny instans av InstrumentationException klassen med serialiseringsinformation.

InstrumentationException(String, Exception)

Initierar en ny InstrumentationException klass med den angivna strängen och undantaget.

InstrumentationException()

Initierar en ny instans av InstrumentationException klassen. Det här är den parameterlösa konstruktorn.

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

Gäller för

InstrumentationException(Exception)

Initierar en ny InstrumentationException klass med System.Exception som orsakade det aktuella undantaget.

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

Parametrar

innerException
Exception

Undantagsinstansen som orsakade det aktuella undantaget.

Gäller för

InstrumentationException(String)

Initierar en ny instans av InstrumentationException klassen med ett meddelande som beskriver undantaget.

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)

Parametrar

message
String

Meddelande som beskriver undantaget.

Gäller för

InstrumentationException(SerializationInfo, StreamingContext)

Initierar en ny instans av InstrumentationException klassen med serialiseringsinformation.

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)

Parametrar

info
SerializationInfo

De data som krävs för att serialisera eller deserialisera ett objekt.

context
StreamingContext

Beskrivning av källan och målet för den angivna serialiserade strömmen.

Gäller för

InstrumentationException(String, Exception)

Initierar en ny InstrumentationException klass med den angivna strängen och undantaget.

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)

Parametrar

message
String

Meddelande som beskriver undantaget.

innerException
Exception

Undantagsinstansen som orsakade det aktuella undantaget.

Gäller för