HttpRuntimeSection.MinLocalRequestFreeThreads 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 minimum number of free threads required to service a local request.
public:
property int MinLocalRequestFreeThreads { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("minLocalRequestFreeThreads", DefaultValue=4)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int MinLocalRequestFreeThreads { get; set; }
[<System.Configuration.ConfigurationProperty("minLocalRequestFreeThreads", DefaultValue=4)>]
[<System.Configuration.IntegerValidator(MinValue=0)>]
member this.MinLocalRequestFreeThreads : int with get, set
Public Property MinLocalRequestFreeThreads As Integer
Property Value
The minimum number of free threads assigned to local requests. The default value is 4.
- Attributes
Examples
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;
' Get the MinLocalRequestFreeThreads property value.
Response.Write("MinLocalRequestFreeThreads: " & _
configSection.MinLocalRequestFreeThreads & "<br>")
' Set the MinLocalRequestFreeThreads property value to 8.
configSection.MinLocalRequestFreeThreads = 8
Remarks
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.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om