語言

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」。

屬性

適用於