Sdílet prostřednictvím


IJsonRpcMessageFormatter.GetJsonText(JsonRpcMessage) Metoda

Definice

Upozornění

Tracing is now done via the IJsonRpcTracingCallbacks and IJsonRpcFormatterTracingCallbacks interfaces. Formatters may throw NotSupportedException from this method.

Získá reprezentaci JSON pro danou zprávu pro účely trasování.

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

Parametry

message
JsonRpcMessage

Zpráva, která se má vysledovat.

Návraty

Jakýkoli objekt, jehož ToString() metoda vytvoří řetězec JSON čitelný pro člověka, který je vhodný pro trasování.

Atributy

Platí pro