Data.Cloud.AzureAPI.TAzureQueueService.PeekMessagesXML

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function PeekMessagesXML(const QueueName: string; NumOfMessages: Integer;  ResponseInfo: TCloudResponseInfo = nil): string;

C++

System::UnicodeString __fastcall PeekMessagesXML(const System::UnicodeString QueueName, int NumOfMessages, Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0));

Properties

Type Visibility Source Unit Parent
function public
Data.Cloud.AzureAPI.pas
Data.Cloud.AzureAPI.hpp
Data.Cloud.AzureAPI TAzureQueueService

Description

Returns messages from the given queue in XML representation.

Use PeekMessagesXML to get messages from the given queue, without their Data.Cloud.CloudAPI.TCloudQueueMessage.PopReceipt. The method returns the result in XML representation.

The following table shows the significance of the parameters:

Parameter Description

QueueName

The name of the queue to get the messages for.

NumOfMessages

The maximum number of messages to return.

ResponseInfo

The optional class for storing response info into.

If NumOfMessages is not set, then the server default of 1 is used. The maximum allowed value is 32.

Note that messages returned by this call will not have their Data.Cloud.CloudAPI.TCloudQueueMessage.PopReceipt specified. There is no VisibilityTimeout, so other users can instantly query messages and see them.

See Also