DSAzure.TAzureQueueService.DeleteMessage
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);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | DSAzure.pas DSAzure.hpp |
DSAzure | TAzureQueueService |
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);