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

DeleteKeyPairAsync() public method

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

            return InvokeAsync<DeleteKeyPairRequest,DeleteKeyPairResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonEC2Client