HttpRuntimeSection.MinLocalRequestFreeThreads 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定服務本地請求所需的最低空閒執行緒數。
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 保留可用以執行新本地請求的空閒執行緒數量。 目的是避免遞迴重新進入網頁伺服器時可能出現的死結。