DSAzure.TAzureQueueService.DeleteMessage
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: public | |
| Source: DSAzure.pas DSAzure.hpp
| |
| Unit: DSAzure | |
| Parent: TAzureQueueService | |
Delphi
function DeleteMessage(const QueueName: String; const MessageId: String; const PopReceipt: String): boolean;
C++
bool __fastcall DeleteMessage(const System::UnicodeString QueueName, const System::UnicodeString MessageId, const System::UnicodeString PopReceipt);
Description
Deletes a single message from the given queue.
DeleteMessage deletes the message with a matching MessageId from the queue with the given name. You must also pass in PopReceipt, which you acquire by calling:
xml = GetMessages('queue-name', 1);
MessageId := FQueueService.GetMessageId(xml);
popReceipt := FQueueService.GetPopReceipt(xml);