CloudQueue.BeginGetMessages CloudQueue.BeginGetMessages CloudQueue.BeginGetMessages Method

Definition

Overloads

BeginGetMessages(Int32, AsyncCallback, Object) BeginGetMessages(Int32, AsyncCallback, Object) BeginGetMessages(Int32, AsyncCallback, Object)

Begins an asynchronous operation to get messages from the queue.

BeginGetMessages(Int32, Nullable<TimeSpan>, QueueRequestOptions, OperationContext, AsyncCallback, Object) BeginGetMessages(Int32, Nullable<TimeSpan>, QueueRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to get the specified number of messages from the queue using the specified request options and operation context. This operation marks the retrieved messages as invisible in the queue for the default visibility timeout period.

BeginGetMessages(Int32, AsyncCallback, Object) BeginGetMessages(Int32, AsyncCallback, Object) BeginGetMessages(Int32, AsyncCallback, Object)

Begins an asynchronous operation to get messages from the queue.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual Microsoft.WindowsAzure.Storage.ICancellableAsyncResult BeginGetMessages (int messageCount, AsyncCallback callback, object state);
abstract member BeginGetMessages : int * AsyncCallback * obj -> Microsoft.WindowsAzure.Storage.ICancellableAsyncResult
override this.BeginGetMessages : int * AsyncCallback * obj -> Microsoft.WindowsAzure.Storage.ICancellableAsyncResult
Public Overridable Function BeginGetMessages (messageCount As Integer, callback As AsyncCallback, state As Object) As ICancellableAsyncResult

Parameters

messageCount
Int32 Int32 Int32

The number of messages to retrieve.

callback
AsyncCallback AsyncCallback AsyncCallback

An AsyncCallback delegate that will receive notification when the asynchronous operation completes.

state
Object Object Object

A user-defined object that will be passed to the callback delegate.

Returns

BeginGetMessages(Int32, Nullable<TimeSpan>, QueueRequestOptions, OperationContext, AsyncCallback, Object) BeginGetMessages(Int32, Nullable<TimeSpan>, QueueRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to get the specified number of messages from the queue using the specified request options and operation context. This operation marks the retrieved messages as invisible in the queue for the default visibility timeout period.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual Microsoft.WindowsAzure.Storage.ICancellableAsyncResult BeginGetMessages (int messageCount, Nullable<TimeSpan> visibilityTimeout, Microsoft.WindowsAzure.Storage.Queue.QueueRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext, AsyncCallback callback, object state);
abstract member BeginGetMessages : int * Nullable<TimeSpan> * Microsoft.WindowsAzure.Storage.Queue.QueueRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.WindowsAzure.Storage.ICancellableAsyncResult
override this.BeginGetMessages : int * Nullable<TimeSpan> * Microsoft.WindowsAzure.Storage.Queue.QueueRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.WindowsAzure.Storage.ICancellableAsyncResult

Parameters

messageCount
Int32 Int32 Int32

The number of messages to retrieve.

visibilityTimeout
Nullable<TimeSpan>

A TimeSpan specifying the visibility timeout interval.

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.

callback
AsyncCallback AsyncCallback AsyncCallback

An AsyncCallback delegate that will receive notification when the asynchronous operation completes.

state
Object Object Object

A user-defined object that will be passed to the callback delegate.

Returns

Applies to