JsonRpcRequest 類別

定義

描述在伺服器上叫用的方法。

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

建構函式

JsonRpcRequest()

描述在伺服器上叫用的方法。

屬性

ArgumentCount

取得要求中提供的引數數目。

ArgumentListDeclaredTypes

取得或設定 物件清單 Type ,描述伺服器預期中 ArgumentsList 每個元素的型別。 如果指定的話,這必須與 完全相同的長度 ArgumentsList ,且不包含任何 null 元素。

ArgumentNames

如果適用,則取得引數名稱的順序。

Arguments

取得或設定叫用指定 Method 時要使用的引數。 引數陣列或物件,其屬性用於具名引數物件。

ArgumentsArray
已淘汰.

如果適用,取得或設定引數的陣列。

ArgumentsList

如果適用,取得或設定引數的唯讀清單。

DebuggerDisplay

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

Id
已淘汰.

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

IsNotification

取得值,指出這是否為通知,而且不預期回應。

IsResponseExpected

取得值,指出是否預期對此要求的回應。

Method

取得或設定要叫用的方法名稱。

NamedArgumentDeclaredTypes

取得或設定屬性名稱所編制索引的物件字典 Type ,描述伺服器預期中 NamedArguments 每個元素的型別。 如果指定的話,這必須與 完全相同的大小 NamedArguments ,且不包含 null 任何值。

NamedArguments

取得或設定具名引數的字典,如果適用的話。

RequestId

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

TraceParent

取得或設定W3C 追蹤內容traceparent 值的資料。

TraceState

取得或設定W3C 追蹤內容tracestate 值的資料。

Version

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

(繼承來源 JsonRpcMessage)

方法

ToString()

描述在伺服器上叫用的方法。

TryGetArgumentByNameOrIndex(String, Int32, Type, Object)

擷取 RPC 要求的引數。

TryGetTopLevelProperty<T>(String, T)

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

(繼承來源 JsonRpcMessage)
TryGetTypedArguments(ReadOnlySpan<ParameterInfo>, Span<Object>)

取得要提供給方法調用的引數,強制轉型為滿足指定參數清單的類型。

TrySetTopLevelProperty<T>(String, T)

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

(繼承來源 JsonRpcMessage)

適用於