共用方式為


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 保留以允許執行新的本機要求。 意圖是避免具有遞迴遞迴重新進入網頁伺服器的可能死結。

適用於

另請參閱