RemoteInvocationException 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
遠端 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
- 繼承
- 屬性
備註
目標方法例外的詳細資訊可在 和 ErrorData 屬性中找到ErrorCode。
建構函式
屬性
| 名稱 | Description |
|---|---|
| DeserializedErrorData |
如果錯誤回應有提供,則會取得 |
| ErrorCode |
在回應中取得場的 |
| ErrorData |
如果錯誤回應有提供,則會取得 |
| RemoteErrorCode |
取得回應中欄位的值 |
| RemoteStackTrace |
如果該值是字串,則會取得回應中欄位 |
方法
| 名稱 | Description |
|---|---|
| GetObjectData(SerializationInfo, StreamingContext) |
遠端 RPC 例外,表示伺服器目標方法拋出了例外。 |
| GetObjectData(SerializationInfo, StreamingContext) |
遠端 RPC 例外,表示伺服器目標方法拋出了例外。 (繼承來源 RemoteRpcException) |
| ToString() |
遠端 RPC 例外,表示伺服器目標方法拋出了例外。 |