StreamMessageHelper.CreateMessage(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 message, using the specified version, action, and stream.
public static System.ServiceModel.Channels.Message CreateMessage (System.ServiceModel.Channels.MessageVersion version, string action, System.IO.Stream stream);
static member CreateMessage : System.ServiceModel.Channels.MessageVersion * string * System.IO.Stream -> System.ServiceModel.Channels.Message
Public Shared Function CreateMessage (version As MessageVersion, action As String, stream As Stream) As Message
Parameters
- version
- MessageVersion
Specifies the addressing and envelope versions to use for the newly created message. If the request is made using REST, the Addressing and Envelope version are None.
- action
- String
A description of how the message should be processed. For messages sent in response to a HTTP request, this value must be “GETRESPONSE”.
- stream
- Stream
A stream that contains content used to write the body of the new message.
Returns
Returns a stream-createdMessage.