AWS SDK for .NET Documentation
DetachLoadBalancerFromSubnets Method (detachLoadBalancerFromSubnetsRequest)
AmazonAmazon.ElasticLoadBalancingAmazonElasticLoadBalancingDetachLoadBalancerFromSubnets(DetachLoadBalancerFromSubnetsRequest) Did this page help you?   Yes   No    Tell us about it...

Removes subnets from the set of configured subnets in the Amazon Virtual Private Cloud (Amazon VPC) for the load balancer.

After a subnet is removed all of the EC2 instances registered with the load balancer that are in the removed subnet will go into the OutOfService state. When a subnet is removed, the load balancer will balance the traffic among the remaining routable subnets for the load balancer.

Declaration Syntax
C#
DetachLoadBalancerFromSubnetsResponse DetachLoadBalancerFromSubnets(
	DetachLoadBalancerFromSubnetsRequest detachLoadBalancerFromSubnetsRequest
)
Parameters
detachLoadBalancerFromSubnetsRequest (DetachLoadBalancerFromSubnetsRequest)
Container for the necessary parameters to execute the DetachLoadBalancerFromSubnets service method on AmazonElasticLoadBalancing.
Return Value
The response from the DetachLoadBalancerFromSubnets service method, as returned by AmazonElasticLoadBalancing.
Exceptions

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