ContextMarshalException Konstruktoren

Definition

Initialisiert eine neue Instanz der ContextMarshalException-Klasse.

Überlädt

ContextMarshalException()

Initialisiert eine neue Instanz der ContextMarshalException-Klasse mit Standardeigenschaften.

ContextMarshalException(String)

Initialisiert eine neue Instanz der ContextMarshalException-Klasse mit einer angegebenen Fehlermeldung.

ContextMarshalException(SerializationInfo, StreamingContext)
Veraltet.

Initialisiert eine neue Instanz der ContextMarshalException-Klasse mit serialisierten Daten.

ContextMarshalException(String, Exception)

Initialisiert eine neue Instanz der ContextMarshalException-Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die diese Ausnahme ausgelöst hat.

ContextMarshalException()

Quelle:
Context.cs
Quelle:
Context.cs
Quelle:
Context.cs

Initialisiert eine neue Instanz der ContextMarshalException-Klasse mit Standardeigenschaften.

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

Hinweise

In der folgenden Tabelle werden die anfänglichen Eigenschaftenwerte für eine ContextMarshalException-Instanz aufgeführt.

Eigenschaft Wert
InnerException null.
Message Die leere Zeichenfolge ("").

Gilt für:

ContextMarshalException(String)

Quelle:
Context.cs
Quelle:
Context.cs
Quelle:
Context.cs

Initialisiert eine neue Instanz der ContextMarshalException-Klasse mit einer angegebenen Fehlermeldung.

public:
 ContextMarshalException(System::String ^ message);
public ContextMarshalException (string? message);
public ContextMarshalException (string message);
new ContextMarshalException : string -> ContextMarshalException
Public Sub New (message As String)

Parameter

message
String

Die Fehlermeldung, in der die Ursache der Ausnahme erklärt wird.

Hinweise

In der folgenden Tabelle werden die anfänglichen Eigenschaftenwerte für eine ContextMarshalException-Instanz aufgeführt.

Eigenschaft Wert
InnerException null.
Message Die Zeichenfolge der Fehlermeldung.

Gilt für:

ContextMarshalException(SerializationInfo, StreamingContext)

Quelle:
Context.cs
Quelle:
Context.cs
Quelle:
Context.cs

Achtung

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Initialisiert eine neue Instanz der ContextMarshalException-Klasse mit serialisierten Daten.

protected:
 ContextMarshalException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ContextMarshalException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected ContextMarshalException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new ContextMarshalException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> ContextMarshalException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new ContextMarshalException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> ContextMarshalException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameter

info
SerializationInfo

Die SerializationInfo, die die serialisierten Objektdaten für die ausgelöste Ausnahme enthält.

context
StreamingContext

Der StreamingContext, der die Kontextinformationen über die Quelle oder das Ziel enthält.

Attribute

Gilt für:

ContextMarshalException(String, Exception)

Quelle:
Context.cs
Quelle:
Context.cs
Quelle:
Context.cs

Initialisiert eine neue Instanz der ContextMarshalException-Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die diese Ausnahme ausgelöst hat.

public:
 ContextMarshalException(System::String ^ message, Exception ^ inner);
public ContextMarshalException (string? message, Exception? inner);
public ContextMarshalException (string message, Exception inner);
new ContextMarshalException : string * Exception -> ContextMarshalException
Public Sub New (message As String, inner As Exception)

Parameter

message
String

Die Fehlermeldung, in der die Ursache der Ausnahme erklärt wird.

inner
Exception

Die Ausnahme, die die Ursache der aktuellen Ausnahme ist. Wenn der inner-Parameter nicht null ist, wird die aktuelle Ausnahme in einem catch-Block ausgelöst, der die innere Ausnahme behandelt.

Hinweise

Eine Ausnahme, die als direktes Ergebnis einer vorhergehenden Ausnahme ausgelöst wird, muss in der InnerException-Eigenschaft über einen Verweis auf die vorhergehende Ausnahme verfügen. Die InnerException-Eigenschaft gibt den gleichen Wert zurück, der an den Konstruktor übergeben wird, oder null, wenn die InnerException-Eigenschaft den Wert der inneren Ausnahme nicht an den Konstruktor übergibt.

In der folgenden Tabelle werden die anfänglichen Eigenschaftenwerte für eine ContextMarshalException-Instanz aufgeführt.

Eigenschaft Wert
InnerException Der Verweis auf die interne Ausnahme.
Message Die Zeichenfolge der Fehlermeldung.

Gilt für: