語言

RemoteMethodNotFoundException 類別

定義

遠端 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
繼承
RemoteMethodNotFoundException
屬性

備註

請查看例外訊息,了解找不到該方法的原因。 有可能有某個方法名稱相同,但該方法沒有公開、沒有 ref 或 out 參數,或其參數與客戶端提供的參數不相容。

建構函式

名稱 Description
RemoteMethodNotFoundException(SerializationInfo, StreamingContext)

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

屬性

名稱 Description
DeserializedErrorData

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

ErrorCode

在回應中取得場的 error.code 值。

ErrorData

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

TargetMethod

會取得未被找到的目標方法名稱。

方法

名稱 Description
GetObjectData(SerializationInfo, StreamingContext)

遠端 RPC 例外表示伺服器上找不到所請求的目標方法。

適用於