共用方式為


StreamMessageHelper.CreateJsonMessage(MessageVersion, String, Stream) Method

Definition

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.

Applies to