AWS SDK for .NET Documentation
AssociateDhcpOptions Method (request)
Amazon ► Amazon.EC2 ► AmazonEC2 ► AssociateDhcpOptions(AssociateDhcpOptionsRequest)
Did this page help you? Yes No Tell us about it...
Associates a set of DHCP options (that you've previously created) with the specified VPC. Or, associates the default DHCP options with the VPC.
Declaration Syntax

C#

    AssociateDhcpOptionsResponse AssociateDhcpOptions(
    	AssociateDhcpOptionsRequest request
    )

Parameters

request (AssociateDhcpOptionsRequest)
  Associate Dhcp Options request

Return Value
Associate Dhcp Options Response from the service
Remarks
The default set consists of the standard EC2 host name, no domain name, no DNS server, no NTP server, and no NetBIOS server or node type. After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. For more information about the supported DHCP options and using them with Amazon VPC, go to Using DHCP Options in the Amazon Virtual Private Cloud Developer Guide.
Exceptions

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

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