共用方式為


ProcessModelSection.RestartQueueLimit 屬性

定義

在等待新的工作程序開始處理請求時,會取得或設定一個值,表示 ISAPI 排隊的請求數量上限。

public:
 property int RestartQueueLimit { int get(); void set(int value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteIntConverter))]
[System.Configuration.ConfigurationProperty("restartQueueLimit", DefaultValue=10)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int RestartQueueLimit { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteIntConverter))>]
[<System.Configuration.ConfigurationProperty("restartQueueLimit", DefaultValue=10)>]
[<System.Configuration.IntegerValidator(MinValue=0)>]
member this.RestartQueueLimit : int with get, set
Public Property RestartQueueLimit As Integer

屬性值

排隊的請求數量。 預設值為 10。

屬性

範例

以下程式碼範例說明如何存取該 RestartQueueLimit 物業。


// Get the current RestartQueueLimit property value.
int restartQueueLimit = 
    processModelSection.RestartQueueLimit;

// Set the RestartQueueLimit property to 8.
processModelSection.RestartQueueLimit = 8;
' Get the current RestartQueueLimit property value.
   Dim restartQueueLimit As Integer = _
   processModelSection.RestartQueueLimit

' Set the RestartQueueLimit property to 8.
processModelSection.RestartQueueLimit = 8

備註

當超過此限制時,客戶端請求將收到 503 錯誤,直到工作程序準備好。

適用於