共用方式為


RemoteInvocationException 類別

定義

指出伺服器目標方法擲回例外狀況的遠端 RPC 例外狀況。

public class RemoteInvocationException : StreamJsonRpc.RemoteRpcException
[System.Serializable]
public class RemoteInvocationException : StreamJsonRpc.RemoteRpcException
type RemoteInvocationException = class
    inherit RemoteRpcException
[<System.Serializable>]
type RemoteInvocationException = class
    inherit RemoteRpcException
Public Class RemoteInvocationException
Inherits RemoteRpcException
繼承
RemoteInvocationException
屬性

備註

您可以在 和 ErrorData 屬性上 ErrorCode 找到目標方法例外狀況的詳細資料。

建構函式

RemoteInvocationException(SerializationInfo, StreamingContext)

初始化 RemoteInvocationException 類別的新執行個體。

RemoteInvocationException(String, Int32, Exception)

初始化 RemoteInvocationException 類別的新執行個體。

RemoteInvocationException(String, Int32, Object)

初始化 RemoteInvocationException 類別的新執行個體。

RemoteInvocationException(String, Int32, Object, Object)

初始化 RemoteInvocationException 類別的新執行個體。

RemoteInvocationException(String, String, String)

初始化 RemoteInvocationException 類別的新執行個體。

RemoteInvocationException(String, String, String, JToken)

初始化 RemoteInvocationException 類別的新執行個體。

屬性

DeserializedErrorData

error.data如果已提供錯誤回應,則取得錯誤回應中的值。

DeserializedErrorData

如果提供錯誤回應,取得或設定 error.data 值。

(繼承來源 RemoteRpcException)
ErrorCode

取得回應中欄位的值 error.code

ErrorCode

取得或設定回應中欄位的值 error.code ,如果有的話。

(繼承來源 RemoteRpcException)
ErrorData

error.data如果已提供錯誤回應,則取得錯誤回應中的值。

ErrorData

如果提供錯誤回應,取得或設定 error.data 值。

(繼承來源 RemoteRpcException)
RemoteErrorCode

如果該值為字串或整數,則取得回應中的域值 error.data.code

RemoteStackTrace

如果該值為字串,則取得回應中欄位的值 error.data.stack

方法

GetObjectData(SerializationInfo, StreamingContext)

指出伺服器目標方法擲回例外狀況的遠端 RPC 例外狀況。

GetObjectData(SerializationInfo, StreamingContext)

指出伺服器目標方法擲回例外狀況的遠端 RPC 例外狀況。

(繼承來源 RemoteRpcException)
ToString()

指出伺服器目標方法擲回例外狀況的遠端 RPC 例外狀況。

適用於