AWS SDK for .NET Documentation
AssociateRouteTable Method (request)
Amazon ► Amazon.EC2 ► AmazonEC2Client ► AssociateRouteTable(AssociateRouteTableRequest)
Did this page help you? Yes No Tell us about it...
Associates a subnet with a route table.
Declaration Syntax

C#

    public AssociateRouteTableResponse AssociateRouteTable(
    	AssociateRouteTableRequest request
    )

Parameters

request (AssociateRouteTableRequest)
  Associate Route Table request

Return Value
Associate Route Table Response from the service
Remarks
The subnet and route table must be in the same VPC. This association causes traffic originating from the subnet to be routed according to the routes in the route table. The action returns an association ID, which you need if you want to disassociate the route table from the subnet later. A route table can be associated with multiple subnets.
Exceptions

Exception | Condition
--- | ---
WebException |
AmazonEC2Exception |

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)