ProcessModelSection.RequestLimit Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft hoeveel aanvragen zijn toegestaan voordat een werkproces wordt gerecycled.

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

Waarde van eigenschap

Het aantal toegestane aanvragen. De standaardwaarde is Oneindig.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de RequestLimit eigenschap gebruikt.


// 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

Opmerkingen

Als het aantal aanvragen wordt overschreden, start ASP.NET automatisch een nieuw werkproces om de plaats van de huidige te nemen.

Van toepassing op