Amazon.SQS.AmazonSQSClient.GetQueueAttributes C# (CSharp) Метод

GetQueueAttributes() публичный Метод

Gets attributes for the specified queue.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=this

&Attribute.2=that

/// The attribute referred to doesn't exist. ///
public GetQueueAttributes ( GetQueueAttributesRequest request ) : GetQueueAttributesResponse
request Amazon.SQS.Model.GetQueueAttributesRequest Container for the necessary parameters to execute the GetQueueAttributes service method.
Результат Amazon.SQS.Model.GetQueueAttributesResponse
        public GetQueueAttributesResponse GetQueueAttributes(GetQueueAttributesRequest request)
        {
            var marshaller = new GetQueueAttributesRequestMarshaller();
            var unmarshaller = GetQueueAttributesResponseUnmarshaller.Instance;

            return Invoke<GetQueueAttributesRequest,GetQueueAttributesResponse>(request, marshaller, unmarshaller);
        }

Same methods

AmazonSQSClient::GetQueueAttributes ( string queueUrl, List attributeNames ) : GetQueueAttributesResponse

Usage Example

Пример #1
0
        public virtual string GetQueueArn(AmazonSQSClient sqsClient, string queueUrl)
        {
            string queueArn;
            // Construct a GetQueueAttributesRequest for the URL to retrieve the ARN
            var getQueueAttributesRequest = new GetQueueAttributesRequest
            {
                QueueUrl = queueUrl,
                AttributeNames =
                {
                    "QueueArn"
                }
            };

            // Submit the request
            GetQueueAttributesResponse getQueueAttributesResponse =
                sqsClient.GetQueueAttributes(getQueueAttributesRequest);

            // Add the discovered ARN to the queueArnList variable.
            queueArn = getQueueAttributesResponse.QueueARN;
            return queueArn;
        }
All Usage Examples Of Amazon.SQS.AmazonSQSClient::GetQueueAttributes
AmazonSQSClient