AWS SDK for .NET Documentation
AssociateRouteTable Method (request)
AmazonAmazon.EC2AmazonEC2AssociateRouteTable(AssociateRouteTableRequest) Did this page help you?   Yes   No    Tell us about it...
Associates a subnet with a route table.
Declaration Syntax
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

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