語言

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
衍生
屬性
實作

建構函式

名稱 Description
JsonRpcError()

描述伺服器因 失敗 JsonRpcRequest 所導致的錯誤。

屬性

名稱 Description
DebuggerDisplay

取得該字串在除錯器中顯示的實例。

Error

會取得或設定錯誤的細節。

Id
已淘汰.

若預期會有回應,則取得或設定由用戶端建立的識別碼。

RequestId

若預期會有回應,則取得或設定由用戶端建立的識別碼。

Version

取得或設定該訊息所遵循的 JSON-RPC 協定版本。

(繼承來源 JsonRpcMessage)

方法

名稱 Description
ToString()

描述伺服器因 失敗 JsonRpcRequest 所導致的錯誤。

TryGetTopLevelProperty<T>(String, T)

從收到的訊息中取得頂層屬性,該屬性是 JSON-RPC 規範的延伸。

(繼承來源 JsonRpcMessage)
TrySetTopLevelProperty<T>(String, T)

在訊息中設定一個頂層屬性,作為 JSON-RPC 規範的擴展。

(繼承來源 JsonRpcMessage)

適用於