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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft