Bagikan melalui


ProcessModelSection.RequestLimit Properti

Definisi

Mendapatkan atau menetapkan nilai yang menunjukkan jumlah permintaan yang diizinkan sebelum proses pekerja didaur ulang.

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

Nilai Properti

Jumlah permintaan yang diizinkan. Defaultnya adalah Infinite.

Atribut

Contoh

Contoh kode berikut menunjukkan cara menggunakan RequestLimit properti .


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

Keterangan

Jika jumlah permintaan terlampaui, ASP.NET secara otomatis meluncurkan proses pekerja baru untuk menggantikan permintaan saat ini.

Berlaku untuk