Dette indhold er ikke tilgængeligt på dit sprog, men her er den engelske version.

StreamMessageHelper.CreateMessage Method (MessageVersion, String, StreamWriterDelegate)


Creates a message from a stream, using the specified version, action, and delegate.

Namespace:   Microsoft.ServiceBus.Web
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public static Message CreateMessage(
	MessageVersion version,
	string action,
	StreamWriterDelegate writer


Type: System.ServiceModel.Channels.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.

Type: System.String

A description of how the message should be processed. For messages sent in response to a HTTP request, this value must be “GETRESPONSE”.

Type: Microsoft.ServiceBus.Web.StreamWriterDelegate

A delegate that allowsM:Microsoft.ServiceBus.Web.StreamMessageHelper.CreateMessage to call back and ask for a Stream to populate the body of the message.

Return Value

Type: System.ServiceModel.Channels.Message

Returns a stream-createdMessage.

Return to top