RemoteMethodNotFoundException 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
遠端 RPC 例外表示伺服器上找不到所請求的目標方法。
public class RemoteMethodNotFoundException : StreamJsonRpc.RemoteRpcException
[System.Serializable]
public class RemoteMethodNotFoundException : StreamJsonRpc.RemoteRpcException
type RemoteMethodNotFoundException = class
inherit RemoteRpcException
[<System.Serializable>]
type RemoteMethodNotFoundException = class
inherit RemoteRpcException
Public Class RemoteMethodNotFoundException
Inherits RemoteRpcException
- 繼承
- 屬性
備註
請查看例外訊息,了解找不到該方法的原因。 有可能有某個方法名稱相同,但該方法沒有公開、沒有 ref 或 out 參數,或其參數與客戶端提供的參數不相容。
建構函式
| 名稱 | Description |
|---|---|
| RemoteMethodNotFoundException(SerializationInfo, StreamingContext) |
初始化 RemoteMethodNotFoundException 類別的新執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| DeserializedErrorData |
如果錯誤回應有提供,則會取得 |
| ErrorCode |
在回應中取得場的 |
| ErrorData |
如果錯誤回應有提供,則會取得 |
| TargetMethod |
會取得未被找到的目標方法名稱。 |
方法
| 名稱 | Description |
|---|---|
| GetObjectData(SerializationInfo, StreamingContext) |
遠端 RPC 例外表示伺服器上找不到所請求的目標方法。 |