RemotingExceptionとは? わかりやすく解説

RemotingException クラス

リモート処理中に何かが失敗すると、スローされる例外。

名前空間: System.Runtime.Remoting
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<SerializableAttribute> _
<ComVisibleAttribute(True)> _
Public Class RemotingException
    Inherits SystemException
Dim instance As RemotingException
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
public class RemotingException : SystemException
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
public ref class RemotingException : public
 SystemException
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
public class RemotingException extends SystemException
SerializableAttribute 
ComVisibleAttribute(true) 
public class RemotingException extends
 SystemException
解説解説

RemotingException は、値 0x8013150B を保持する HRESULT COR_E_REMOTING を使用します。

RemotingException は、Equals メソッドの既定の実装を使用します。この実装では、参照が等値かどうかを判断できます。

RemotingException のインスタンスの初期プロパティ値の一覧については、RemotingException コンストラクタのトピックを参照してください。

継承階層継承階層
System.Object
   System.Exception
     System.SystemException
      System.Runtime.Remoting.RemotingException
         System.Runtime.Remoting.RemotingTimeoutException
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RemotingException メンバ
System.Runtime.Remoting 名前空間
Exception
その他の技術情報
例外の処理とスロー

RemotingException コンストラクタ ()


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

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

名前空間: System.Runtime.Remoting
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Sub New ( _
    message As String, _
    InnerException As Exception _
)
Dim message As String
Dim InnerException As Exception

Dim instance As New RemotingException(message,
 InnerException)
public RemotingException (
    string message,
    Exception InnerException
)
public:
RemotingException (
    String^ message, 
    Exception^ InnerException
)
public RemotingException (
    String message, 
    Exception InnerException
)
public function RemotingException (
    message : String, 
    InnerException : Exception
)

パラメータ

message

例外が発生した理由を説明するエラー メッセージ。

InnerException

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

解説解説

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

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

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RemotingException クラス
RemotingException メンバ
System.Runtime.Remoting 名前空間
Exception
その他の技術情報
例外の処理とスロー

RemotingException コンストラクタ (SerializationInfo, StreamingContext)

シリアル化したデータから、RemotingException クラスの新しいインスタンスを初期化します。

名前空間: System.Runtime.Remoting
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
Dim info As SerializationInfo
Dim context As StreamingContext

Dim instance As New RemotingException(info,
 context)
protected RemotingException (
    SerializationInfo info,
    StreamingContext context
)
protected:
RemotingException (
    SerializationInfo^ info, 
    StreamingContext context
)
protected RemotingException (
    SerializationInfo info, 
    StreamingContext context
)
protected function RemotingException (
    info : SerializationInfo, 
    context : StreamingContext
)

パラメータ

info

シリアル化されたオブジェクト データを保持するオブジェクト。

context

例外の発生元または発生先に関するコンテキスト情報。

例外例外
例外の種類条件

ArgumentNullException

info パラメータが null 参照 (Visual Basic では Nothing) です。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RemotingException クラス
RemotingException メンバ
System.Runtime.Remoting 名前空間

RemotingException コンストラクタ

RemotingException クラスの新しいインスタンスを初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
RemotingException () RemotingException クラスの新しいインスタンスを既定のプロパティを使用して初期化します。
RemotingException (String) 指定したメッセージを使用して、RemotingException クラスの新しいインスタンスを初期化します。
RemotingException (SerializationInfo, StreamingContext) シリアル化したデータから、RemotingException クラスの新しいインスタンスを初期化します。
RemotingException (String, Exception) 指定したエラー メッセージと、この例外の原因である内部例外への参照を使用して、RemotingException クラスの新しいインスタンスを初期化します。
参照参照

関連項目

RemotingException クラス
RemotingException メンバ
System.Runtime.Remoting 名前空間
Exception

RemotingException コンストラクタ (String)

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

名前空間: System.Runtime.Remoting
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

解説解説

RemotingException は SystemException クラスから継承します。RemotingException クラスのインスタンスの初期プロパティ値を次の表に示します。

プロパティの型

条件

InnerException

null 参照 (Visual Basic では Nothing)

Message

message 文字列

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RemotingException クラス
RemotingException メンバ
System.Runtime.Remoting 名前空間
Exception

RemotingException プロパティ


パブリック プロパティパブリック プロパティ

プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外に割り当てられているコード化数値である HRESULT を取得または設定します。 ( Exception から継承されます。)
参照参照

関連項目

RemotingException クラス
System.Runtime.Remoting 名前空間
Exception

その他の技術情報

例外の処理とスロー

RemotingException メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

RemotingException クラス
System.Runtime.Remoting 名前空間
Exception

その他の技術情報

例外の処理とスロー

RemotingException メンバ

リモート処理中に何かが失敗すると、スローされる例外。

RemotingException データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド RemotingException オーバーロードされます。 RemotingException クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外に割り当てられているコード化数値である HRESULT を取得または設定します。(Exception から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

RemotingException クラス
System.Runtime.Remoting 名前空間
Exception

その他の技術情報

例外の処理とスロー



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「RemotingException」の関連用語

RemotingExceptionのお隣キーワード

   

英語⇒日本語
日本語⇒英語
   



RemotingExceptionのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS