語言

JsonRpcRequest.NamedArgumentDeclaredTypes 屬性

定義

取得或設定一個以屬性名稱為索引的物件字典 Type ,描述伺服器期望的每個元素 NamedArguments 如何被類型化。 若指定,則此值的大小 NamedArguments 必須與 完全相同,且不 null 包含任何值。

[System.Runtime.Serialization.IgnoreDataMember]
public System.Collections.Generic.IReadOnlyDictionary<string,Type>? NamedArgumentDeclaredTypes { get; set; }
[System.Runtime.Serialization.IgnoreDataMember]
[System.Text.Json.Serialization.JsonIgnore]
public System.Collections.Generic.IReadOnlyDictionary<string,Type>? NamedArgumentDeclaredTypes { get; set; }
[<System.Runtime.Serialization.IgnoreDataMember>]
member this.NamedArgumentDeclaredTypes : System.Collections.Generic.IReadOnlyDictionary<string, Type> with get, set
[<System.Runtime.Serialization.IgnoreDataMember>]
[<System.Text.Json.Serialization.JsonIgnore>]
member this.NamedArgumentDeclaredTypes : System.Collections.Generic.IReadOnlyDictionary<string, Type> with get, set
Public Property NamedArgumentDeclaredTypes As IReadOnlyDictionary(Of String, Type)

屬性值

屬性

備註

這個屬性*並未*序列化到 JSON-RPC 訊息中。 在 RPC 呼叫的用戶端,它來自參數物件中宣告的屬性類型。 在 RPC 呼叫的伺服器端,它來自於所呼叫 RPC 方法中每個參數的型別。 此列表用於協助 IJsonRpcMessageFormatter 序列化。

適用於