FormatterBase.JsonRpcResultBase 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
一個專門針對格式化器 JsonRpcResult 實作的基底類別。
protected abstract class FormatterBase.JsonRpcResultBase : StreamJsonRpc.Protocol.JsonRpcResult, StreamJsonRpc.FormatterBase.IMessageWithTopLevelPropertyBag, StreamJsonRpc.Reflection.IJsonRpcMessageBufferManager
Protected MustInherit Class FormatterBase.JsonRpcResultBase
Inherits JsonRpcResult
Implements FormatterBase.IMessageWithTopLevelPropertyBag, IJsonRpcMessageBufferManager
- 繼承
- 實作
建構函式
| 名稱 | Description |
|---|---|
| FormatterBase.JsonRpcResultBase() |
一個專門針對格式化器 JsonRpcResult 實作的基底類別。 |
屬性
| 名稱 | Description |
|---|---|
| DebuggerDisplay |
取得該字串在除錯器中顯示的實例。 (繼承來源 JsonRpcResult) |
| Id |
已淘汰.
若預期會有回應,則取得或設定由用戶端建立的識別碼。 (繼承來源 JsonRpcResult) |
| RequestId |
若預期會有回應,則取得或設定由用戶端建立的識別碼。 (繼承來源 JsonRpcResult) |
| Result |
取得或設定呼叫結果的值(如果有的話)。 (繼承來源 JsonRpcResult) |
| ResultDeclaredType |
取得或設定回傳值的宣告型別。 (繼承來源 JsonRpcResult) |
| TopLevelPropertyBag |
取得或設定此訊息的頂層屬性袋。 |
| Version |
取得或設定該訊息所遵循的 JSON-RPC 協定版本。 (繼承來源 JsonRpcMessage) |
方法
| 名稱 | Description |
|---|---|
| CreateTopLevelPropertyBag() |
為此訊息建立頂層屬性袋的新實例。 |
| GetResult<T>() |
得到 的值 Result,考慮任何可能的型別強制。 (繼承來源 JsonRpcResult) |
| ReleaseBuffers() |
當被衍生型別覆蓋時,會清除所有可能用於反序列化的緩衝區的參考。 |
| SetExpectedResultType(Type) |
提供延遲反序列化 Result 的提示,說明後續呼叫 GetResult<T>() 時會使用的型別參數。 (繼承來源 JsonRpcResult) |
| ToString() |
一個專門針對格式化器 JsonRpcResult 實作的基底類別。 (繼承來源 JsonRpcResult) |
| TryGetTopLevelProperty<T>(String, T) |
從收到的訊息中取得頂層屬性,該屬性是 JSON-RPC 規範的延伸。 |
| TrySetTopLevelProperty<T>(String, T) |
在訊息中設定一個頂層屬性,作為 JSON-RPC 規範的擴展。 |
明確介面實作
| 名稱 | Description |
|---|---|
| IJsonRpcMessageBufferManager.DeserializationComplete(JsonRpcMessage) |
一個專門針對格式化器 JsonRpcResult 實作的基底類別。 |