语言

JsonRpcMessage.Version 属性

定义

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

[System.Runtime.Serialization.DataMember(IsRequired=true, Name="jsonrpc", Order=0)]
public string Version { get; set; }
[System.Runtime.Serialization.DataMember(IsRequired=true, Name="jsonrpc", Order=0)]
[System.Text.Json.Serialization.JsonPropertyName("jsonrpc")]
[System.Text.Json.Serialization.JsonPropertyOrder(0)]
[System.Text.Json.Serialization.JsonRequired]
public string Version { get; set; }
[<System.Runtime.Serialization.DataMember(IsRequired=true, Name="jsonrpc", Order=0)>]
member this.Version : string with get, set
[<System.Runtime.Serialization.DataMember(IsRequired=true, Name="jsonrpc", Order=0)>]
[<System.Text.Json.Serialization.JsonPropertyName("jsonrpc")>]
[<System.Text.Json.Serialization.JsonPropertyOrder(0)>]
[<System.Text.Json.Serialization.JsonRequired>]
member this.Version : string with get, set
Public Property Version As String

属性值

默认值为“2.0”。

属性

适用于