JsonRpcError 类

定义

描述由服务器上失败的错误 JsonRpcRequest

[System.Runtime.Serialization.DataContract]
public class JsonRpcError : StreamJsonRpc.Protocol.JsonRpcMessage
[System.Runtime.Serialization.DataContract]
public class JsonRpcError : StreamJsonRpc.Protocol.JsonRpcMessage, StreamJsonRpc.Protocol.IJsonRpcMessageWithId
[<System.Runtime.Serialization.DataContract>]
type JsonRpcError = class
    inherit JsonRpcMessage
[<System.Runtime.Serialization.DataContract>]
type JsonRpcError = class
    inherit JsonRpcMessage
    interface IJsonRpcMessageWithId
Public Class JsonRpcError
Inherits JsonRpcMessage
Public Class JsonRpcError
Inherits JsonRpcMessage
Implements IJsonRpcMessageWithId
继承
JsonRpcError
属性
实现

构造函数

JsonRpcError()

描述由服务器上失败的错误 JsonRpcRequest

属性

DebuggerDisplay

获取要在此实例的调试器中显示的字符串。

Error

获取或设置有关错误的详细信息。

Id
已过时.

获取或设置客户端建立的标识符(如果预期响应请求)。

RequestId

获取或设置客户端建立的标识符(如果预期响应请求)。

Version

获取或设置此消息符合的 JSON-RPC 协议的版本。

(继承自 JsonRpcMessage)

方法

ToString()

描述由服务器上失败的错误 JsonRpcRequest

TryGetTopLevelProperty<T>(String, T)

从作为 JSON-RPC 规范扩展的传入消息中检索顶级属性。

(继承自 JsonRpcMessage)
TrySetTopLevelProperty<T>(String, T)

在消息中设置一个顶级属性,该属性是 JSON-RPC 规范的扩展。

(继承自 JsonRpcMessage)

适用于