JsonRpcResult Class

Definition

Describes the result of a successful method invocation.

[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
Inheritance
JsonRpcResult
Attributes
Implements

Constructors

JsonRpcResult()

Properties

DebuggerDisplay

Gets the string to display in the debugger for this instance.

Id
Obsolete.

Gets or sets an identifier established by the client if a response to the request is expected.

RequestId

Gets or sets an identifier established by the client if a response to the request is expected.

Result

Gets or sets the value of the result of an invocation, if any.

ResultDeclaredType

Gets or sets the declared type of the return value.

Version

Gets or sets the version of the JSON-RPC protocol that this message conforms to.

(Inherited from JsonRpcMessage)

Methods

GetResult<T>()

Gets the value of the Result, taking into account any possible type coercion.

SetExpectedResultType(Type)

Provides a hint for a deferred deserialization of the Result value as to the type argument that will be used when calling GetResult<T>() later.

ToString()

Returns a string that represents the current object.

TryGetTopLevelProperty<T>(String, T)

Retrieves a top-level property from an incoming message that is an extension to the JSON-RPC specification.

(Inherited from JsonRpcMessage)
TrySetTopLevelProperty<T>(String, T)

Sets a top-level property in the message that is an extension to JSON-RPC specification.

(Inherited from JsonRpcMessage)

Applies to