語言

IJsonRpcMessageFormatter.GetJsonText(JsonRpcMessage) 方法

定義

警告

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 字串,且適合追蹤的物件。

屬性

適用於