ThreadInterruptedException コンストラクター

定義

ThreadInterruptedException クラスの新しいインスタンスを初期化します。

オーバーロード

ThreadInterruptedException()

ThreadInterruptedException クラスの新しいインスタンスを、既定のプロパティを使用して初期化します。

ThreadInterruptedException(String)

指定したエラー メッセージを使用して、ThreadInterruptedException クラスの新しいインスタンスを初期化します。

ThreadInterruptedException(SerializationInfo, StreamingContext)
古い.

シリアル化したデータを使用して、ThreadInterruptedException クラスの新しいインスタンスを初期化します。

ThreadInterruptedException(String, Exception)

指定したエラー メッセージおよびこの例外の原因となった内部例外への参照を使用して、ThreadInterruptedException クラスの新しいインスタンスを初期化します。

ThreadInterruptedException()

Source:
ThreadInterruptedException.cs
Source:
ThreadInterruptedException.cs
Source:
ThreadInterruptedException.cs

ThreadInterruptedException クラスの新しいインスタンスを、既定のプロパティを使用して初期化します。

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

注釈

次の表に、ThreadInterruptedException のインスタンスに対するプロパティの初期値を示します。

プロパティ
InnerException null.
Message ローカライズされたエラー メッセージ文字列。

こちらもご覧ください

適用対象

ThreadInterruptedException(String)

Source:
ThreadInterruptedException.cs
Source:
ThreadInterruptedException.cs
Source:
ThreadInterruptedException.cs

指定したエラー メッセージを使用して、ThreadInterruptedException クラスの新しいインスタンスを初期化します。

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)

パラメーター

message
String

例外の原因を説明するエラー メッセージ。

注釈

次の表に、ThreadInterruptedException のインスタンスに対するプロパティの初期値を示します。

プロパティ
InnerException null.
Message エラー メッセージ文字列。

こちらもご覧ください

適用対象

ThreadInterruptedException(SerializationInfo, StreamingContext)

Source:
ThreadInterruptedException.cs
Source:
ThreadInterruptedException.cs
Source:
ThreadInterruptedException.cs

注意事項

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

シリアル化したデータを使用して、ThreadInterruptedException クラスの新しいインスタンスを初期化します。

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)

パラメーター

info
SerializationInfo

スローされている例外に関するシリアル化済みオブジェクト データを保持している SerializationInfo

context
StreamingContext

転送元または転送先についてのコンテキスト情報を含む StreamingContext です。

属性

注釈

このコンストラクターは、シリアル化解除の際に呼び出されて、ストリームで送信された例外オブジェクトを再構成します。 詳細については、「 XML および SOAP のシリアル化」を参照してください。

こちらもご覧ください

適用対象

ThreadInterruptedException(String, Exception)

Source:
ThreadInterruptedException.cs
Source:
ThreadInterruptedException.cs
Source:
ThreadInterruptedException.cs

指定したエラー メッセージおよびこの例外の原因となった内部例外への参照を使用して、ThreadInterruptedException クラスの新しいインスタンスを初期化します。

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)

パラメーター

message
String

例外の原因を説明するエラー メッセージ。

innerException
Exception

現在の例外の原因となった例外。 innerException パラメーターが null でない場合は、内部例外を処理する catch ブロックで現在の例外が発生します。

注釈

前の例外の直接の結果としてスローされる例外については、InnerException プロパティに、前の例外への参照を含める必要があります。 InnerException プロパティは、コンストラクターに渡されるのと同じ値を返します。または、InnerException プロパティがコンストラクターに内部例外値を提供しない場合には null を返します。

次の表に、ThreadInterruptedException のインスタンスに対するプロパティの初期値を示します。

プロパティ [値]
InnerException 内部例外の参照。
Message エラー メッセージ文字列。

こちらもご覧ください

適用対象