CloudQueue.BeginDeleteMessage Method (String, String, AsyncCallback, Object)
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)
public IAsyncResult BeginDeleteMessage ( string messageId, string popReceipt, AsyncCallback callback, Object state )
The message ID.
The pop receipt value.
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.
After a client retrieves a message by calling the BeginGetMessage or BeginGetMessages method, the client is expected to process and delete the message. When a message is retrieved, its PopReceipt property is set to an opaque value that indicates that the message has been read. The value of the message's pop receipt is used to verify that the message being deleted is the same message that was read.
After a client retrieves a message, that message is reserved for deletion until the date and time indicated by the message's NextVisibleTime property, and no other client may retrieve the message during that time interval. If the message is not deleted before the time specified by the NextVisibleTime property, it again becomes visible to other clients. If the message is not subsequently retrieved and deleted by another client, the client that retrieved it can still delete it. If another client does retrieve it, then the first client can no longer delete it.
Development PlatformsWindows Vista, Windows 7 and Windows Server 2008