Storage Client Library for Windows Phone (Version 7.0)

Microsoft Windows Azure Storage Blob

CloudQueue.BeginPeekMessages Method (Int32, AsyncCallback, Object) (Microsoft.WindowsAzure.Storage.Queue)

Begins an asynchronous operation to peek messages from the queue.

Namespace:   Microsoft.WindowsAzure.Storage.Queue
Assembly:  Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Syntax

 
[DoesServiceRequestAttribute]
public virtual ICancellableAsyncResult BeginPeekMessages(
	int messageCount,
	AsyncCallback callback,
	object state
)
 
public:
[DoesServiceRequestAttribute]
virtual ICancellableAsyncResult^ BeginPeekMessages(
	int messageCount,
	AsyncCallback^ callback,
	Object^ state
)
 
[<DoesServiceRequestAttribute>]
abstract BeginPeekMessages : 
        messageCount:int *
        callback:AsyncCallback *
        state:Object -> ICancellableAsyncResult
[<DoesServiceRequestAttribute>]
override BeginPeekMessages : 
        messageCount:int *
        callback:AsyncCallback *
        state:Object -> ICancellableAsyncResult
 
<DoesServiceRequestAttribute>
Public Overridable Function BeginPeekMessages (
	messageCount As Integer,
	callback As AsyncCallback,
	state As Object
) As ICancellableAsyncResult

Parameters

messageCount
Type: System.Int32System::Int32System.Int32System.Int32

The number of messages to peek.

callback
Type: System.AsyncCallbackSystem::AsyncCallback^System.AsyncCallbackSystem.AsyncCallback

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

state
Type: System.ObjectSystem::Object^System.ObjectSystem.Object

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

Return to top