C#C++F#VB
CloudQueue.::..BeginPeekMessages Method (Int32, AsyncCallback, Object)(Int32, AsyncCallback^, Object^)(Int32, AsyncCallback, Object)(Int32, AsyncCallback, Object)
Begins an asynchronous operation to peek messages from the queue.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute] public virtual ICancellableAsyncResult BeginPeekMessages( int messageCount, AsyncCallback callback, object state )
C++
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 Value
Type: Microsoft.WindowsAzure.Storage.ICancellableAsyncResultMicrosoft.WindowsAzure.Storage::ICancellableAsyncResult^Microsoft.WindowsAzure.Storage.ICancellableAsyncResultMicrosoft.WindowsAzure.Storage.ICancellableAsyncResultAn ICancellableAsyncResult that references the asynchronous operation.