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

屬性值

分配給本地請求的最低自由執行緒數。 預設值為 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 保留可用以執行新本地請求的空閒執行緒數量。 目的是避免遞迴重新進入網頁伺服器時可能出現的死結。

適用於

另請參閱