SALES: 1-800-867-1380

BrokeredMessage Constructor (Stream, Boolean)

 

Initializes a new instance of the BrokeredMessage class using the supplied stream as its body.

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

public BrokeredMessage(
	Stream messageBodyStream,
	bool ownsStream
)

Parameters

messageBodyStream
Type: System.IO.Stream

The message body stream.

ownsStream
Type: System.Boolean

true to indicate that the stream will be closed when the message is closed; false to indicate that the stream will not be closed when the message is closed.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft