ApplicationPoolFailure.LoadBalancerCapabilities Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the response behavior of a service when it is unavailable.
public:
property Microsoft::Web::Administration::LoadBalancerCapabilities LoadBalancerCapabilities { Microsoft::Web::Administration::LoadBalancerCapabilities get(); void set(Microsoft::Web::Administration::LoadBalancerCapabilities value); };
public Microsoft.Web.Administration.LoadBalancerCapabilities LoadBalancerCapabilities { get; set; }
member this.LoadBalancerCapabilities : Microsoft.Web.Administration.LoadBalancerCapabilities with get, set
Public Property LoadBalancerCapabilities As LoadBalancerCapabilities
Property Value
One of the LoadBalancerCapabilities values. The default is HttpLevel.
Examples
The following example displays the value of the LoadBalancerCapabilities property. This code example is part of a larger example provided for the ApplicationPoolFailure class.
Console.WriteLine("LoadBalancerCapabilities:\t{0}",
manager.ApplicationPoolDefaults.Failure.LoadBalancerCapabilities);
Remarks
This property specifies behavior when a worker process cannot be started (for example, when the request queue is full or an application pool is in rapid-fail protection).
A value of TcpLevel terminates the connection. The default value of HttpLevel sends error code 503 (Service Unavailable).