SALES: 1-800-867-1380

SubscriptionClient.GetMessageSessions Method (DateTime)


Retrieves all message sessions whose session state was updated since lastUpdatedTime.

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

public IEnumerable<MessageSession> GetMessageSessions(
	DateTime lastUpdatedTime


Type: System.DateTime

The time the session was last updated.

Return Value

Type: System.Collections.Generic.IEnumerable<MessageSession>

A message session that allows grouping of related messages for processing in a single transaction.

For example, if lastUpdatedTime is set to 5 minutes ago, then this method returns all the sessions that were modified in the last 5 minutes.

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