MessageReceiver.Receive MessageReceiver.Receive MessageReceiver.Receive MessageReceiver.Receive Method

Definition

Overloads

Receive() Receive() Receive() Receive()

Receives a BrokeredMessage from the current queue or topic.

Receive(Int64) Receive(Int64) Receive(Int64) Receive(Int64)

Receives a message from the current queue or topic.

Receive(TimeSpan) Receive(TimeSpan) Receive(TimeSpan) Receive(TimeSpan)

Receives a BrokeredMessage from the current queue or topic.

Receive() Receive() Receive() Receive()

Receives a BrokeredMessage from the current queue or topic.

public:
 virtual Microsoft::ServiceBus::Messaging::BrokeredMessage ^ Receive();
public Microsoft.ServiceBus.Messaging.BrokeredMessage Receive ();
abstract member Receive : unit -> Microsoft.ServiceBus.Messaging.BrokeredMessage
override this.Receive : unit -> Microsoft.ServiceBus.Messaging.BrokeredMessage
Public Function Receive () As BrokeredMessage
Returns

Remarks

A Null can be returned by this API if operation exceeded the timeout specified, 
            or the operations succeeded but there are no more messages to be received.

Receive(Int64) Receive(Int64) Receive(Int64) Receive(Int64)

Receives a message from the current queue or topic.

public:
 virtual Microsoft::ServiceBus::Messaging::BrokeredMessage ^ Receive(long sequenceNumber);
public Microsoft.ServiceBus.Messaging.BrokeredMessage Receive (long sequenceNumber);
abstract member Receive : int64 -> Microsoft.ServiceBus.Messaging.BrokeredMessage
override this.Receive : int64 -> Microsoft.ServiceBus.Messaging.BrokeredMessage
Public Function Receive (sequenceNumber As Long) As BrokeredMessage
Parameters
sequenceNumber
Int64 Int64 Int64 Int64

The sequence number of the message to receive.

Returns

Remarks

A Null can be returned by this API if operation exceeded the timeout specified, 
            or the operations succeeded but the message with the requested sequenceNumber cannot be located.

Receive(TimeSpan) Receive(TimeSpan) Receive(TimeSpan) Receive(TimeSpan)

Receives a BrokeredMessage from the current queue or topic.

public:
 virtual Microsoft::ServiceBus::Messaging::BrokeredMessage ^ Receive(TimeSpan serverWaitTime);
public Microsoft.ServiceBus.Messaging.BrokeredMessage Receive (TimeSpan serverWaitTime);
abstract member Receive : TimeSpan -> Microsoft.ServiceBus.Messaging.BrokeredMessage
override this.Receive : TimeSpan -> Microsoft.ServiceBus.Messaging.BrokeredMessage
Public Function Receive (serverWaitTime As TimeSpan) As BrokeredMessage
Parameters
serverWaitTime
TimeSpan TimeSpan TimeSpan TimeSpan

The time span the server waits before the operation times out.

Returns

Remarks

A Null can be returned by this API if operation exceeded the timeout specified, 
            or the operations succeeded but there are no more messages to be received.

Applies to