ProcessModelSection.RestartQueueLimit 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定值,表示等待新背景工作處理序開始處理要求時,由 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 錯誤,直到背景工作進程就緒為止。