CloudQueue.PeekMessagesAsync CloudQueue.PeekMessagesAsync CloudQueue.PeekMessagesAsync Method

Definition

Overloads

PeekMessagesAsync(Int32, QueueRequestOptions, OperationContext, CancellationToken) PeekMessagesAsync(Int32, QueueRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to peek messages from the queue.

PeekMessagesAsync(Int32, QueueRequestOptions, OperationContext) PeekMessagesAsync(Int32, QueueRequestOptions, OperationContext)

Initiates an asynchronous operation to peek messages from the queue.

PeekMessagesAsync(Int32) PeekMessagesAsync(Int32) PeekMessagesAsync(Int32)

Initiates an asynchronous operation to peek messages from the queue.

PeekMessagesAsync(Int32, CancellationToken) PeekMessagesAsync(Int32, CancellationToken)

Initiates an asynchronous operation to peek messages from the queue.

PeekMessagesAsync(Int32, QueueRequestOptions, OperationContext, CancellationToken) PeekMessagesAsync(Int32, QueueRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to peek messages from the queue.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage>> PeekMessagesAsync (int messageCount, Microsoft.WindowsAzure.Storage.Queue.QueueRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
abstract member PeekMessagesAsync : int * Microsoft.WindowsAzure.Storage.Queue.QueueRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage>>
override this.PeekMessagesAsync : int * Microsoft.WindowsAzure.Storage.Queue.QueueRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage>>

Parameters

messageCount
Int32 Int32 Int32

The number of messages to peek.

options
QueueRequestOptions QueueRequestOptions QueueRequestOptions

A QueueRequestOptions object that specifies additional options for the request.

operationContext
OperationContext OperationContext OperationContext

An OperationContext object that represents the context for the current operation.

cancellationToken
CancellationToken CancellationToken CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

A Task<TResult> object that is an enumerable collection of type CloudQueueMessage that represents the asynchronous operation.

PeekMessagesAsync(Int32, QueueRequestOptions, OperationContext) PeekMessagesAsync(Int32, QueueRequestOptions, OperationContext)

Initiates an asynchronous operation to peek messages from the queue.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage>> PeekMessagesAsync (int messageCount, Microsoft.WindowsAzure.Storage.Queue.QueueRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext);
abstract member PeekMessagesAsync : int * Microsoft.WindowsAzure.Storage.Queue.QueueRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> System.Threading.Tasks.Task<seq<Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage>>
override this.PeekMessagesAsync : int * Microsoft.WindowsAzure.Storage.Queue.QueueRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> System.Threading.Tasks.Task<seq<Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage>>

Parameters

messageCount
Int32 Int32 Int32

The number of messages to peek.

options
QueueRequestOptions QueueRequestOptions QueueRequestOptions

A QueueRequestOptions object that specifies additional options for the request.

operationContext
OperationContext OperationContext OperationContext

An OperationContext object that represents the context for the current operation.

Returns

A Task<TResult> object that is an enumerable collection of type CloudQueueMessage that represents the asynchronous operation.

PeekMessagesAsync(Int32) PeekMessagesAsync(Int32) PeekMessagesAsync(Int32)

Initiates an asynchronous operation to peek messages from the queue.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage>> PeekMessagesAsync (int messageCount);
abstract member PeekMessagesAsync : int -> System.Threading.Tasks.Task<seq<Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage>>
override this.PeekMessagesAsync : int -> System.Threading.Tasks.Task<seq<Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage>>
Public Overridable Function PeekMessagesAsync (messageCount As Integer) As Task(Of IEnumerable(Of CloudQueueMessage))

Parameters

messageCount
Int32 Int32 Int32

The number of messages to peek.

Returns

A Task<TResult> object that is an enumerable collection of type CloudQueueMessage that represents the asynchronous operation.

PeekMessagesAsync(Int32, CancellationToken) PeekMessagesAsync(Int32, CancellationToken)

Initiates an asynchronous operation to peek messages from the queue.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage>> PeekMessagesAsync (int messageCount, System.Threading.CancellationToken cancellationToken);
abstract member PeekMessagesAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage>>
override this.PeekMessagesAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage>>

Parameters

messageCount
Int32 Int32 Int32

The number of messages to peek.

cancellationToken
CancellationToken CancellationToken CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

A Task<TResult> object that is an enumerable collection of type CloudQueueMessage that represents the asynchronous operation.

Applies to