HttpRuntimeSection.MinLocalRequestFreeThreads Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the minimum number of free threads required to service a local request.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("minLocalRequestFreeThreads", 
	DefaultValue = 4)]
[IntegerValidatorAttribute(MinValue = 0)]
public int MinLocalRequestFreeThreads { get; set; }

Property Value

Type: System.Int32

The minimum number of free threads assigned to local requests. The default value is 4.

The MinLocalRequestFreeThreads property defines the number of free threads that ASP.NET keeps available to allow execution of new local requests. The intent is to avoid a possible deadlock with recursive reentry into the Web server.

The following example shows how to use the MinLocalRequestFreeThreads property.

// Get the MinLocalRequestFreeThreads property value.
Response.Write("MinLocalRequestFreeThreads: " +
  configSection.MinLocalRequestFreeThreads + "<br>");

// Set the MinLocalRequestFreeThreads property value to 8.
configSection.MinLocalRequestFreeThreads = 8;

.NET Framework
Available since 2.0
Return to top
Show: