public ListDeadLetterSourceQueues ( |
||
request | Container for the necessary parameters to execute the ListDeadLetterSourceQueues service method. | |
Résultat |
public ListDeadLetterSourceQueuesResponse ListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request)
{
var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller();
var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.Instance;
return Invoke<ListDeadLetterSourceQueuesRequest,ListDeadLetterSourceQueuesResponse>(request, marshaller, unmarshaller);
}
public static void SQSListDeadLetterSourceQueues() { #region SQSListDeadLetterSourceQueues var client = new AmazonSQSClient(); var request = new ListDeadLetterSourceQueuesRequest { QueueUrl = "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyTestDeadLetterQueue" }; var response = client.ListDeadLetterSourceQueues(request); if (response.QueueUrls.Count > 0) { Console.WriteLine("Dead letter source queues:"); foreach (var url in response.QueueUrls) { Console.WriteLine(" " + url); } } else { Console.WriteLine("No dead letter source queues."); } #endregion Console.ReadLine(); }