HttpRuntimeSection.MinLocalRequestFreeThreads 属性

定义

获取或设置为本地请求提供服务所需要的最小自由线程数。

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

属性值

Int32

分配给本地请求的最小自由线程数。 默认值为 4。

属性

示例

下面的示例演示如何使用 MinLocalRequestFreeThreads 属性。

// 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

注解

MinLocalRequestFreeThreads属性定义 ASP.NET 允许执行新本地请求的免费线程数。 目的是避免在 Web 服务器中出现递归重新进入的可能死锁。

适用于

另请参阅