HttpRuntimeSection.AppRequestQueueLimit 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,表示應用程式 ASP.NET 隊列的最大請求數。
public:
property int AppRequestQueueLimit { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("appRequestQueueLimit", DefaultValue=5000)]
[System.Configuration.IntegerValidator(MinValue=1)]
public int AppRequestQueueLimit { get; set; }
[<System.Configuration.ConfigurationProperty("appRequestQueueLimit", DefaultValue=5000)>]
[<System.Configuration.IntegerValidator(MinValue=1)>]
member this.AppRequestQueueLimit : int with get, set
Public Property AppRequestQueueLimit As Integer
屬性值
可以加入佇列的最大要求數目。
- 屬性
範例
以下範例說明如何使用該 AppRequestQueueLimit 屬性。
// Get the AppRequestQueueLimit property value.
Response.Write("AppRequestQueueLimit: " +
configSection.AppRequestQueueLimit + "<br>");
// Set the AppRequestQueueLimit property value to 4500.
configSection.AppRequestQueueLimit = 4500;
' Get the AppRequestQueueLimit property value.
Response.Write("AppRequestQueueLimit: " & _
configSection.AppRequestQueueLimit & "<br>")
' Set the AppRequestQueueLimit property value to 4500.
configSection.AppRequestQueueLimit = 4500
備註
ASP.NET 在沒有足夠空閒執行緒處理請求時會排隊。
備註
當排隊的請求數超過此設定所設定的限制時,收到的請求將以「503 - 伺服器過忙」錯誤被拒絕。