Freigeben über


ThreadInterruptedException Konstruktoren

Definition

Initialisiert eine neue Instanz der ThreadInterruptedException-Klasse.

Überlädt

Name Beschreibung
ThreadInterruptedException()

Initialisiert eine neue Instanz der ThreadInterruptedException Klasse mit Standardeigenschaften.

ThreadInterruptedException(String)

Initialisiert eine neue Instanz der ThreadInterruptedException Klasse mit einer angegebenen Fehlermeldung.

ThreadInterruptedException(SerializationInfo, StreamingContext)
Veraltet.

Initialisiert eine neue Instanz der ThreadInterruptedException Klasse mit serialisierten Daten.

ThreadInterruptedException(String, Exception)

Initialisiert eine neue Instanz der ThreadInterruptedException Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die die Ursache dieser Ausnahme ist.

ThreadInterruptedException()

Quelle:
ThreadInterruptedException.cs
Quelle:
ThreadInterruptedException.cs
Quelle:
ThreadInterruptedException.cs
Quelle:
ThreadInterruptedException.cs
Quelle:
ThreadInterruptedException.cs

Initialisiert eine neue Instanz der ThreadInterruptedException Klasse mit Standardeigenschaften.

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

Hinweise

In der folgenden Tabelle sind die anfänglichen Eigenschaftswerte für eine Instanz von ThreadInterruptedException.

Eigentum Wert
InnerException null.
Message Die lokalisierte Fehlermeldungszeichenfolge.

Weitere Informationen

Gilt für:

ThreadInterruptedException(String)

Quelle:
ThreadInterruptedException.cs
Quelle:
ThreadInterruptedException.cs
Quelle:
ThreadInterruptedException.cs
Quelle:
ThreadInterruptedException.cs
Quelle:
ThreadInterruptedException.cs

Initialisiert eine neue Instanz der ThreadInterruptedException Klasse mit einer angegebenen Fehlermeldung.

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

Parameter

message
String

Die Fehlermeldung, die den Grund für die Ausnahme erklärt.

Hinweise

In der folgenden Tabelle sind die anfänglichen Eigenschaftswerte für eine Instanz von ThreadInterruptedException.

Eigentum Wert
InnerException null.
Message Die Fehlermeldungszeichenfolge.

Weitere Informationen

Gilt für:

ThreadInterruptedException(SerializationInfo, StreamingContext)

Quelle:
ThreadInterruptedException.cs
Quelle:
ThreadInterruptedException.cs
Quelle:
ThreadInterruptedException.cs
Quelle:
ThreadInterruptedException.cs
Quelle:
ThreadInterruptedException.cs

Achtung

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

Initialisiert eine neue Instanz der ThreadInterruptedException Klasse mit serialisierten Daten.

protected:
 ThreadInterruptedException(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 ThreadInterruptedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected ThreadInterruptedException(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}")>]
new System.Threading.ThreadInterruptedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Threading.ThreadInterruptedException
new System.Threading.ThreadInterruptedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Threading.ThreadInterruptedException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameter

info
SerializationInfo

Das SerializationInfo Objekt enthält die serialisierten Objektdaten zu der Ausnahme, die ausgelöst wird.

context
StreamingContext

Die StreamingContext kontextbezogene Informationen zur Quelle oder zum Ziel.

Attribute

Hinweise

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

Weitere Informationen

Gilt für:

ThreadInterruptedException(String, Exception)

Quelle:
ThreadInterruptedException.cs
Quelle:
ThreadInterruptedException.cs
Quelle:
ThreadInterruptedException.cs
Quelle:
ThreadInterruptedException.cs
Quelle:
ThreadInterruptedException.cs

Initialisiert eine neue Instanz der ThreadInterruptedException Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die die Ursache dieser Ausnahme ist.

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

Parameter

message
String

Die Fehlermeldung, die den Grund für die Ausnahme erklärt.

innerException
Exception

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

Hinweise

Eine Ausnahme, die als direktes Ergebnis einer vorherigen Ausnahme ausgelöst wird, sollte einen Verweis auf die vorherige Ausnahme in der InnerException Eigenschaft enthalten. Die InnerException Eigenschaft gibt denselben Wert zurück, der an den Konstruktor übergeben wird, oder null wenn die InnerException Eigenschaft den inneren Ausnahmewert nicht für den Konstruktor angibt.

In der folgenden Tabelle sind die anfänglichen Eigenschaftswerte für eine Instanz von ThreadInterruptedException.

Eigentum Wert
InnerException Der interne Ausnahmeverweis.
Message Die Fehlermeldungszeichenfolge.

Weitere Informationen

Gilt für: