次の方法で共有


ThreadInterruptedException コンストラクタ (String, Exception)

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

名前空間: System.Threading
アセンブリ: mscorlib (mscorlib.dll 内)

構文

'宣言
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
'使用
Dim message As String
Dim innerException As Exception

Dim instance As New ThreadInterruptedException(message, innerException)
public ThreadInterruptedException (
    string message,
    Exception innerException
)
public:
ThreadInterruptedException (
    String^ message, 
    Exception^ innerException
)
public ThreadInterruptedException (
    String message, 
    Exception innerException
)
public function ThreadInterruptedException (
    message : String, 
    innerException : Exception
)
適用できません。

パラメータ

  • message
    例外の原因を説明するエラー メッセージ。
  • innerException
    現在の例外の原因である例外。innerException パラメータが null 参照 (Visual Basic では Nothing) でない場合は、内部例外を処理する catch ブロックで現在の例外が発生します。

解説

前の例外の直接の結果としてスローされる例外については、InnerException プロパティに、前の例外への参照が格納されます。InnerException プロパティは、コンストラクタに渡されたものと同じ値を返します。InnerException プロパティによって内部例外値がコンストラクタに渡されなかった場合は、null 参照 (Visual Basic では Nothing) を返します。

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

プロパティ

InnerException

内部例外参照。

Message

エラー メッセージ文字列。

プラットフォーム

Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition

Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。

バージョン情報

.NET Framework

サポート対象 : 3.0,2.0,1.1,1.0

参照

関連項目

ThreadInterruptedException クラス
ThreadInterruptedException メンバ
System.Threading 名前空間

その他の技術情報

スレッドの一時中断と再開
マネージ スレッドとアンマネージ スレッド