GetMessageSessions Method (DateTime)
Collapse the table of content
Expand the table of content

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
© 2015 Microsoft