SALES: 1-800-867-1380
Expand Minimize

MessageSession.SetState Method

Sets the state of the message session.

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

public void SetState(
	Stream stream


Type: System.IO.Stream
The stream to which the state information is persisted.

Note that you cannot set the TTL (DefaultMessageTimeToLive) property for message sessions. As such, you must perform your own cleanup operations, otherwise the message will exist until the queue is deleted.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft