StreamMessageHelper.CreateJsonMessage(MessageVersion, String, Stream) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a JSON message with a specified version.
public static System.ServiceModel.Channels.Message CreateJsonMessage (System.ServiceModel.Channels.MessageVersion version, string action, System.IO.Stream jsonStream);
static member CreateJsonMessage : System.ServiceModel.Channels.MessageVersion * string * System.IO.Stream -> System.ServiceModel.Channels.Message
Public Shared Function CreateJsonMessage (version As MessageVersion, action As String, jsonStream As Stream) As Message
Parameters
- version
- MessageVersion
The message version.
- action
- String
A description of how the message should be processed.
- jsonStream
- Stream
A stream that contains content used to write the body of the new message.
Returns
The created JSON message.