IJsonRpcMessageFormatter.GetJsonText(JsonRpcMessage) Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
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