AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to DeleteDhcpOptionsAsync.

Namespace: Amazon.EC2
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public virtual DeleteDhcpOptionsResponse DeleteDhcpOptions(
         DeleteDhcpOptionsRequest request
)

Parameters

request
Type: Amazon.EC2.Model.DeleteDhcpOptionsRequest

Container for the necessary parameters to execute the DeleteDhcpOptions service method.

Return Value


The response from the DeleteDhcpOptions service method, as returned by EC2.

Examples

This example deletes the specified DHCP options set.

To delete a DHCP options set


var client = new AmazonEC2Client();
var response = client.DeleteDhcpOptions(new DeleteDhcpOptionsRequest 
{
    DhcpOptionsId = "dopt-d9070ebb"
});


            

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also