Data.Cloud.AmazonAPI.TAmazonQueueService.AddMessage
Delphi
function AddMessage(const QueueURL: string; const MessageText: string; ResponseInfo: TCloudResponseInfo = nil): Boolean; overload;
function AddMessage(const QueueURL: string; const MessageText: string; out MessageId: string; ResponseInfo: TCloudResponseInfo = nil): Boolean; overload;
C++
bool __fastcall AddMessage(const System::UnicodeString QueueURL, const System::UnicodeString MessageText, Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0))/* overload */;
bool __fastcall AddMessage(const System::UnicodeString QueueURL, const System::UnicodeString MessageText, /* out */ System::UnicodeString &MessageId, Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0))/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.Cloud.AmazonAPI.pas Data.Cloud.AmazonAPI.hpp |
Data.Cloud.AmazonAPI | TAmazonQueueService |
Description
Adds a message to the given queue.
There are two AddMessage overloaded methods. For the second overloaded method, you can get the ID of the message in the queue.
The method returns True if the operation was successful, False otherwise.
The following table shows the significance of the parameters:
Parameter | Description |
---|---|
|
The URL of the queue to add the message to. |
|
The text of the message. |
|
The ID of the message in the queue, or an empty string if the addition failed. |
|
The optional class for storing response info into. |