IJsonRpcMessageFormatter.GetJsonText(JsonRpcMessage) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Attention
Tracing is now done via the IJsonRpcTracingCallbacks and IJsonRpcFormatterTracingCallbacks interfaces. Formatters may throw NotSupportedException from this method.
Obtient une représentation JSON pour un message donné à des fins de suivi.
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
Paramètres
- message
- JsonRpcMessage
Message à suivre.
Retours
Tout objet dont ToString() la méthode produit une chaîne JSON lisible par l’homme, adaptée au suivi.
- Attributs