April 2018
Intermediate to advanced
280 pages
8h 37m
English
Listing the available SQS queues can be done by invoking the ListQueues() function of the SQS client object. This function returns a response object that consists of a list of all the SQS queues available. You can iterate over the response object and list all the queues.
The following code lists the queues:
var listQueuesRequest = new ListQueuesRequest();var listQueuesResponse = sqs_object.ListQueues(listQueuesRequest);if (listQueuesResponse.QueueUrls != null){ foreach (String urls in listQueuesResponse.QueueUrls) { Console.WriteLine(" Queue URL : {0}", urls); }}
Now that you can list the queues that were created, let's send a message to the queue.