语言

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 参数,或其参数与客户端提供的参数不兼容。

构造函数

名称 说明
RemoteMethodNotFoundException(SerializationInfo, StreamingContext)

初始化 RemoteMethodNotFoundException 类的新实例。

属性

名称 说明
DeserializedErrorData

error.data获取错误响应中的值(如果已提供)。

ErrorCode

获取响应中字段的值 error.code 。

ErrorData

error.data获取错误响应中的值(如果已提供)。

TargetMethod

获取找不到的目标方法的名称。

方法

名称 说明
GetObjectData(SerializationInfo, StreamingContext)

远程 RPC 异常,指示在服务器上找不到请求的目标方法。

适用于