JsonRpcResult 類別

定義

描述成功方法調用的結果。

[System.Runtime.Serialization.DataContract]
public class JsonRpcResult : StreamJsonRpc.Protocol.JsonRpcMessage
[System.Runtime.Serialization.DataContract]
public class JsonRpcResult : StreamJsonRpc.Protocol.JsonRpcMessage, StreamJsonRpc.Protocol.IJsonRpcMessageWithId
[<System.Runtime.Serialization.DataContract>]
type JsonRpcResult = class
    inherit JsonRpcMessage
[<System.Runtime.Serialization.DataContract>]
type JsonRpcResult = class
    inherit JsonRpcMessage
    interface IJsonRpcMessageWithId
Public Class JsonRpcResult
Inherits JsonRpcMessage
Public Class JsonRpcResult
Inherits JsonRpcMessage
Implements IJsonRpcMessageWithId
繼承
JsonRpcResult
屬性
實作

建構函式

JsonRpcResult()

描述成功方法調用的結果。

屬性

DebuggerDisplay

取得要在此實例的偵錯工具中顯示的字串。

Id
已淘汰.

如果預期要求回應,則取得或設定用戶端所建立的識別碼。

RequestId

如果預期要求回應,則取得或設定用戶端所建立的識別碼。

Result

取得或設定叫用結果的值,如果有的話。

ResultDeclaredType

取得或設定傳回值的宣告型別。

Version

取得或設定此訊息符合的 JSON-RPC 通訊協定版本。

(繼承來源 JsonRpcMessage)

方法

GetResult<T>()

取得 的值 Result ,並將任何可能的型別強制型別納入考慮。

SetExpectedResultType(Type)

提供延遲還原序列化 Result 值的提示,做為稍後呼叫 GetResult<T>() 時將使用的型別引數。

ToString()

描述成功方法調用的結果。

TryGetTopLevelProperty<T>(String, T)

從內送訊息擷取最上層屬性,該訊息是 JSON-RPC 規格的延伸模組。

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

在訊息中設定最上層屬性,該訊息是 JSON-RPC 規格的延伸模組。

(繼承來源 JsonRpcMessage)

適用於