IJsonRpcMessageFormatter.GetJsonText(JsonRpcMessage) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Tracing is now done via the IJsonRpcTracingCallbacks and IJsonRpcFormatterTracingCallbacks interfaces. Formatters may throw NotSupportedException from this method.
它會為特定訊息取得 JSON 表示以供追蹤。
public object GetJsonText(StreamJsonRpc.Protocol.JsonRpcMessage message);
[System.Obsolete("Tracing is now done via the IJsonRpcTracingCallbacks and IJsonRpcFormatterTracingCallbacks interfaces. Formatters may throw NotSupportedException from this method.")]
public object GetJsonText(StreamJsonRpc.Protocol.JsonRpcMessage message);
abstract member GetJsonText : StreamJsonRpc.Protocol.JsonRpcMessage -> obj
[<System.Obsolete("Tracing is now done via the IJsonRpcTracingCallbacks and IJsonRpcFormatterTracingCallbacks interfaces. Formatters may throw NotSupportedException from this method.")>]
abstract member GetJsonText : StreamJsonRpc.Protocol.JsonRpcMessage -> obj
Public Function GetJsonText (message As JsonRpcMessage) As Object
參數
- message
- JsonRpcMessage
要追蹤的訊息。
傳回
任何其 ToString() 方法能產生人類可讀的 JSON 字串,且適合追蹤的物件。
- 屬性