Deletes a subnet from a VPC.
             
 Declaration Syntax
 Declaration Syntax| C# | 
public class DeleteSubnetRequest : EC2Request
 Members
 Members| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description | 
|---|---|---|
|  | DeleteSubnetRequest()()()() | Initializes a new instance of the DeleteSubnetRequest class | 
|  | Equals(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
 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
 Inheritance Hierarchy| Object | ||
|  | EC2Request | |
|  | DeleteSubnetRequest | |