Amazon.EC2.AmazonEC2Client.DescribeKeyPairsAsync C# (CSharp) Method

DescribeKeyPairsAsync() public method

Initiates the asynchronous execution of the DescribeKeyPairs operation.
public DescribeKeyPairsAsync ( DescribeKeyPairsRequest request, System cancellationToken = default(CancellationToken) ) : Task
request DescribeKeyPairsRequest Container for the necessary parameters to execute the DescribeKeyPairs operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<DescribeKeyPairsResponse> DescribeKeyPairsAsync(DescribeKeyPairsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new DescribeKeyPairsRequestMarshaller();
            var unmarshaller = DescribeKeyPairsResponseUnmarshaller.Instance;

            return InvokeAsync<DescribeKeyPairsRequest,DescribeKeyPairsResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }

Same methods

AmazonEC2Client::DescribeKeyPairsAsync ( System cancellationToken = default(CancellationToken) ) : Task
AmazonEC2Client