SynchronizationLockException Konstruktoren

Definition

Initialisiert eine neue Instanz der SynchronizationLockException-Klasse.

Überlädt

SynchronizationLockException()

Initialisiert eine neue Instanz der SynchronizationLockException-Klasse mit Standardeigenschaften.

SynchronizationLockException(String)

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

SynchronizationLockException(SerializationInfo, StreamingContext)
Veraltet.

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

SynchronizationLockException(String, Exception)

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

SynchronizationLockException()

Source:
SynchronizationLockException.cs
Source:
SynchronizationLockException.cs
Source:
SynchronizationLockException.cs

Initialisiert eine neue Instanz der SynchronizationLockException-Klasse mit Standardeigenschaften.

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

Hinweise

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

Eigenschaft Wert
InnerException null.
Message Die lokalisierte Zeichenfolge mit der Fehlermeldung.

Gilt für:

SynchronizationLockException(String)

Source:
SynchronizationLockException.cs
Source:
SynchronizationLockException.cs
Source:
SynchronizationLockException.cs

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

public:
 SynchronizationLockException(System::String ^ message);
public SynchronizationLockException (string message);
public SynchronizationLockException (string? message);
new System.Threading.SynchronizationLockException : string -> System.Threading.SynchronizationLockException
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 SynchronizationLockException-Instanz aufgeführt.

Eigenschaft Wert
InnerException null.
Message Die Zeichenfolge der Fehlermeldung.

Gilt für:

SynchronizationLockException(SerializationInfo, StreamingContext)

Source:
SynchronizationLockException.cs
Source:
SynchronizationLockException.cs
Source:
SynchronizationLockException.cs

Achtung

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

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

protected:
 SynchronizationLockException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected SynchronizationLockException (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 SynchronizationLockException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Threading.SynchronizationLockException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Threading.SynchronizationLockException
[<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 System.Threading.SynchronizationLockException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Threading.SynchronizationLockException
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

Hinweise

Dieser Konstruktor wird während der Deserialisierung aufgerufen, um das über einen Datenstrom übertragene Ausnahmeobjekt wieder zusammenzusetzen. Weitere Informationen finden Sie unter XML- und SOAP-Serialisierung.

Weitere Informationen

Gilt für:

SynchronizationLockException(String, Exception)

Source:
SynchronizationLockException.cs
Source:
SynchronizationLockException.cs
Source:
SynchronizationLockException.cs

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

public:
 SynchronizationLockException(System::String ^ message, Exception ^ innerException);
public SynchronizationLockException (string message, Exception innerException);
public SynchronizationLockException (string? message, Exception? innerException);
new System.Threading.SynchronizationLockException : string * Exception -> System.Threading.SynchronizationLockException
Public Sub New (message As String, innerException As Exception)

Parameter

message
String

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

innerException
Exception

Die Ausnahme, die die Ursache der aktuellen Ausnahme ist. Wenn der innerException-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 SynchronizationLockException-Instanz aufgeführt.

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

Weitere Informationen

Gilt für: