Export (0) Print
Expand All

SubscriptionClient.Receive Method

Receives a message using the InternalReceiver().

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

public BrokeredMessage Receive()

Return Value

Type: Microsoft.ServiceBus.Messaging.BrokeredMessage
The BrokeredMessage that represents the received message.

ExceptionCondition
MessagingEntityNotFoundException

Thrown when the subscription does not exist.

TimeoutException

Thrown if the operation exceeded the timeout value set via OperationTimeout.

OperationCanceledException

Thrown if the client entity has been closed or aborted.

UnauthorizedAccessException

Thrown if there is an authentication error.

Community Additions

ADD
Show:
© 2014 Microsoft