Updated: September 27, 2013
Begins an asynchronous operation to peek a message from the queue. Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)
The callback delegate that will receive notification when the asynchronous operation completes.
A user-defined object that will be passed to the callback delegate.
Return ValueType: System.IAsyncResultAn IAsyncResult that references the asynchronous operation.
When a message is retrieved from the queue using BeginPeekMessage, the message is not dequeued and the visibility of the message remains unchanged. The message remains available to other clients until a client retrieves the message with a call to BeginGetMessage. The call to BeginPeekMessage does not update the message's PopReceipt value, so the message cannot subsequently be deleted. Additionally, calling BeginPeekMessage does not update the message's NextVisibleTime or DequeueCount properties.
Only messages that are visible may be retrieved with BeginPeekMessage.
Development PlatformsWindows Vista, Windows 7 and Windows Server 2008