Share via


ProcessModelSection.RequestLimit 属性

定义

获取或设置一个值,该值指示在回收辅助进程之前所允许的请求数。

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

属性值

所允许的请求数。 默认值为 Infinite。

属性

示例

下面的代码示例说明如何使用 RequestLimit 属性。


// Get the current RequestLimit property value.
int reqLimit = 
    processModelSection.RequestLimit;

// Set the RequestLimit property to 4096.
processModelSection.RequestLimit = 4096;
' Get the current RequestLimit property value.
   Dim reqLimit As Integer = _
   processModelSection.RequestLimit

' Set the RequestLimit property to 4096.
processModelSection.RequestLimit = 4096

注解

如果超过请求数,ASP.NET 会自动启动新的工作进程以取代当前工作进程。

适用于