ThreadInterruptedException Oluşturucular

Tanım

ThreadInterruptedException sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

ThreadInterruptedException()

Sınıfın ThreadInterruptedException yeni bir örneğini varsayılan özelliklerle başlatır.

ThreadInterruptedException(String)

Belirtilen hata iletisiyle sınıfının yeni bir örneğini ThreadInterruptedException başlatır.

ThreadInterruptedException(SerializationInfo, StreamingContext)
Geçersiz.

ThreadInterruptedException sınıfının yeni bir örneğini serileştirilmiş verilerle başlatır.

ThreadInterruptedException(String, Exception)

Belirtilen bir hata iletisi ve bu özel durumun nedeni olan iç özel duruma başvuru ile sınıfının yeni bir örneğini ThreadInterruptedException başlatır.

ThreadInterruptedException()

Kaynak:
ThreadInterruptedException.cs
Kaynak:
ThreadInterruptedException.cs
Kaynak:
ThreadInterruptedException.cs

Sınıfın ThreadInterruptedException yeni bir örneğini varsayılan özelliklerle başlatır.

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

Açıklamalar

Aşağıdaki tablo, ThreadInterruptedException öğesinin bir örneği için başlangıç özellik değerlerini gösterir.

Özellik Değer
InnerException null.
Message Yerelleştirilmiş hata ileti dizesi.

Ayrıca bkz.

Şunlara uygulanır

ThreadInterruptedException(String)

Kaynak:
ThreadInterruptedException.cs
Kaynak:
ThreadInterruptedException.cs
Kaynak:
ThreadInterruptedException.cs

Belirtilen hata iletisiyle sınıfının yeni bir örneğini ThreadInterruptedException başlatır.

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)

Parametreler

message
String

Özel durumun nedenini açıklayan hata iletisi.

Açıklamalar

Aşağıdaki tablo, ThreadInterruptedException öğesinin bir örneği için başlangıç özellik değerlerini gösterir.

Özellik Değer
InnerException null.
Message Hata iletisi dizesi.

Ayrıca bkz.

Şunlara uygulanır

ThreadInterruptedException(SerializationInfo, StreamingContext)

Kaynak:
ThreadInterruptedException.cs
Kaynak:
ThreadInterruptedException.cs
Kaynak:
ThreadInterruptedException.cs

Dikkat

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

ThreadInterruptedException sınıfının yeni bir örneğini serileştirilmiş verilerle başlatır.

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

Parametreler

info
SerializationInfo

Oluşturulan özel durumla ilgili serileştirilmiş nesne verilerini içeren SerializationInfo.

context
StreamingContext

Kaynak veya hedefle ilgili bağlamsal bilgileri içeren StreamingContext.

Öznitelikler

Açıklamalar

Bu oluşturucu, bir akış üzerinden iletilen özel durum nesnesini yeniden oluşturmak için seri durumundan çıkarma sırasında çağrılır. Daha fazla bilgi için bkz. XML ve SOAP Serileştirme.

Ayrıca bkz.

Şunlara uygulanır

ThreadInterruptedException(String, Exception)

Kaynak:
ThreadInterruptedException.cs
Kaynak:
ThreadInterruptedException.cs
Kaynak:
ThreadInterruptedException.cs

Belirtilen bir hata iletisi ve bu özel durumun nedeni olan iç özel duruma başvuru ile sınıfının yeni bir örneğini ThreadInterruptedException başlatır.

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)

Parametreler

message
String

Özel durumun nedenini açıklayan hata iletisi.

innerException
Exception

Geçerli özel durumun nedeni olan özel durum. innerException parametresi değilsenull, geçerli özel durum iç özel durumu işleyen bir catch blokta oluşturulur.

Açıklamalar

Bir önceki özel durumun doğrudan bir sonucu olarak oluşturulan bir özel durum, InnerException özelliğindeki önceki özel duruma başvuru içermelidir. InnerException özelliği, oluşturucuya iletilen aynı değeri ya da InnerException özelliği oluşturucuya iç özel durum değeri sağlamıyorsa null değerini döndürür.

Aşağıdaki tablo, ThreadInterruptedException öğesinin bir örneği için başlangıç özellik değerlerini gösterir.

Özellik Değer
InnerException İç özel duruma başvuru.
Message Hata iletisi dizesi.

Ayrıca bkz.

Şunlara uygulanır