ApplicationPoolDefaults.QueueLength Property

Definition

Gets or sets the maximum number of requests to queue for an application pool before requests are rejected.

public:
 property long QueueLength { long get(); void set(long value); };
public long QueueLength { get; set; }
member this.QueueLength : int64 with get, set
Public Property QueueLength As Long

Property Value

The maximum number of requests to queue before additional requests are rejected. The default value is 1000.

Exceptions

The QueueLength property is set to a value less than 10 or greater than 65535.

Examples

The following example displays the value of the QueueLength property. This code example is part of a larger example provided for the ApplicationPoolDefaults class.

Console.WriteLine("QueueLength:\t{0}",
    manager.ApplicationPoolDefaults.QueueLength.ToString());

Remarks

When the maximum number of requests in the queue has been reached, the service returns an out-of-service message (503: Service Unavailable) to any additional requests to the application pool.

You can use the QueueLength property to configure the request queue of a new application pool.

Applies to

See also