cloud_queue::peek_messages Method
Retrieves the specified number of messages from the front of the queue, without affecting message visibility.
std::vector<cloud_queue_message> peek_messages(
size_t message_count
) const;
std::vector<cloud_queue_message> peek_messages(
size_t message_count,
const queue_request_options& options,
operation_context context
) const;
Parameters
- message_count
The number of messages to be retrieved.
- options
A azure::storage::queue_request_options object that specifies additional options for the request.
- context
An azure::storage::operation_context object that represents the context for the current operation.
Return Value
An enumerable collection of cloud_queue_message objects.
Requirements
Header: queue.h
Namespace: azure::storage