SALES: 1-800-867-1380

SubscriptionClient.Receive Method (Int64)

Receives a message using the InternalReceiver.

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

'Declaration
Public Function Receive ( _
	sequenceNumber As Long _
) As BrokeredMessage
'Usage
Dim instance As SubscriptionClient
Dim sequenceNumber As Long
Dim returnValue As BrokeredMessage

returnValue = instance.Receive(sequenceNumber)

Parameters

sequenceNumber
Type: System.Int64
The sequence number of the deferred message to receive.

Return Value

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

ExceptionCondition
OperationCanceledException

Thrown if the client entity has been closed or aborted.

You can only use sequenceNumber to receive a message if you previously called Defer on the message.

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

Community Additions

ADD
Show:
© 2014 Microsoft