AWS SDK for .NET Documentation
DeleteSubnetRequest Class
AmazonAmazon.EC2.ModelDeleteSubnetRequest Did this page help you?   Yes   No    Tell us about it...
Deletes a subnet from a VPC.
Declaration Syntax
C#
public class DeleteSubnetRequest : EC2Request
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
DeleteSubnetRequest()()()()
Initializes a new instance of the DeleteSubnetRequest class

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
IsSetSubnetId()()()()
Checks if SubnetId property is set

SubnetId
The ID of the subnet you want to delete.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithSubnetId(String) Obsolete.
Sets the ID of the subnet you want to delete.

Remarks
You must terminate all running instances in the subnet before deleting it, otherwise Amazon VPC returns an error. AWS might delete any subnet if you leave it inactive for an extended period of time (inactive means that there are no running Amazon EC2 instances in the subnet).
Inheritance Hierarchy
Object
EC2Request
 DeleteSubnetRequest

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