Condividi tramite


QueueClient.ReceiveMessages Method

Definition

Overloads

ReceiveMessages()

Receives one or more messages from the front of the queue.

For more information, see Get Messages.

ReceiveMessages(CancellationToken)

Receives one or more messages from the front of the queue.

For more information, see Get Messages.

ReceiveMessages(Nullable<Int32>, Nullable<TimeSpan>, CancellationToken)

Receives one or more messages from the front of the queue.

For more information, see Get Messages.

ReceiveMessages()

Source:
QueueClient.cs
Source:
QueueClient.cs

Receives one or more messages from the front of the queue.

For more information, see Get Messages.

public virtual Azure.Response<Azure.Storage.Queues.Models.QueueMessage[]> ReceiveMessages ();
abstract member ReceiveMessages : unit -> Azure.Response<Azure.Storage.Queues.Models.QueueMessage[]>
override this.ReceiveMessages : unit -> Azure.Response<Azure.Storage.Queues.Models.QueueMessage[]>
Public Overridable Function ReceiveMessages () As Response(Of QueueMessage())

Returns

Response<T> where T is an array of QueueMessage

Applies to

ReceiveMessages(CancellationToken)

Source:
QueueClient.cs
Source:
QueueClient.cs

Receives one or more messages from the front of the queue.

For more information, see Get Messages.

public virtual Azure.Response<Azure.Storage.Queues.Models.QueueMessage[]> ReceiveMessages (System.Threading.CancellationToken cancellationToken = default);
abstract member ReceiveMessages : System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Queues.Models.QueueMessage[]>
override this.ReceiveMessages : System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Queues.Models.QueueMessage[]>
Public Overridable Function ReceiveMessages (Optional cancellationToken As CancellationToken = Nothing) As Response(Of QueueMessage())

Parameters

cancellationToken
CancellationToken

Optional CancellationToken

Returns

Response<T> where T is an array of QueueMessage

Applies to

ReceiveMessages(Nullable<Int32>, Nullable<TimeSpan>, CancellationToken)

Source:
QueueClient.cs
Source:
QueueClient.cs

Receives one or more messages from the front of the queue.

For more information, see Get Messages.

public virtual Azure.Response<Azure.Storage.Queues.Models.QueueMessage[]> ReceiveMessages (int? maxMessages = default, TimeSpan? visibilityTimeout = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ReceiveMessages : Nullable<int> * Nullable<TimeSpan> * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Queues.Models.QueueMessage[]>
override this.ReceiveMessages : Nullable<int> * Nullable<TimeSpan> * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Queues.Models.QueueMessage[]>
Public Overridable Function ReceiveMessages (Optional maxMessages As Nullable(Of Integer) = Nothing, Optional visibilityTimeout As Nullable(Of TimeSpan) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of QueueMessage())

Parameters

maxMessages
Nullable<Int32>

Optional. A nonzero integer value that specifies the number of messages to retrieve from the queue, up to a maximum of 32. If fewer are visible, the visible messages are returned. By default, a single message is retrieved from the queue with this operation.

visibilityTimeout
Nullable<TimeSpan>

Optional. Specifies the new visibility timeout value, in seconds, relative to server time. The default value is 30 seconds.

cancellationToken
CancellationToken

Optional CancellationToken

Returns

Response<T> where T is an array of QueueMessage

Applies to