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

DetachInternetGatewayAsync() public method

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

            return InvokeAsync<DetachInternetGatewayRequest,DetachInternetGatewayResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonEC2Client