ProcessModelSection.RequestLimit Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Ottiene o imposta un valore che indica il numero di richieste consentite prima che un processo di lavoro venga riciclato.
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
Valore della proprietà
Numero di richieste consentite. Il valore predefinito è Infinite.
- Attributi
Esempio
Nell'esempio di codice seguente viene illustrato come utilizzare la RequestLimit proprietà .
// 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
Commenti
Se viene superato il numero di richieste, ASP.NET avvia automaticamente un nuovo processo di lavoro al posto di quello corrente.