ProcessModelSection.RequestLimit Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating the number of requests allowed before a worker process is recycled.
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
Property Value
The number of allowed requests. The default is Infinite.
- Attributes
Examples
The following code example shows how to use the RequestLimit property.
// 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
Remarks
If the number of requests is exceeded, ASP.NET automatically launches a new worker process to take the place of the current one.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET