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)

abstract GetMessageSessions : 
        lastUpdatedTime:DateTime -> IEnumerable<MessageSession> 
override GetMessageSessions : 
        lastUpdatedTime:DateTime -> IEnumerable<MessageSession> 


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.

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

Community Additions

© 2015 Microsoft