Bagikan melalui


HttpRuntimeSection.AppRequestQueueLimit Properti

Definisi

Mendapatkan atau menetapkan nilai yang menunjukkan jumlah maksimum permintaan yang ASP.NET antrean untuk aplikasi.

public:
 property int AppRequestQueueLimit { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("appRequestQueueLimit", DefaultValue=5000)]
[System.Configuration.IntegerValidator(MinValue=1)]
public int AppRequestQueueLimit { get; set; }
[<System.Configuration.ConfigurationProperty("appRequestQueueLimit", DefaultValue=5000)>]
[<System.Configuration.IntegerValidator(MinValue=1)>]
member this.AppRequestQueueLimit : int with get, set
Public Property AppRequestQueueLimit As Integer

Nilai Properti

Jumlah maksimum permintaan yang dapat diantrekan.

Atribut

Contoh

Contoh berikut menunjukkan cara menggunakan AppRequestQueueLimit properti .

// Get the AppRequestQueueLimit property value.
Response.Write("AppRequestQueueLimit: " +
  configSection.AppRequestQueueLimit + "<br>");

// Set the AppRequestQueueLimit property value to 4500.
configSection.AppRequestQueueLimit = 4500;
' Get the AppRequestQueueLimit property value.
Response.Write("AppRequestQueueLimit: " & _
  configSection.AppRequestQueueLimit & "<br>")

' Set the AppRequestQueueLimit property value to 4500.
configSection.AppRequestQueueLimit = 4500

Keterangan

ASP.NET permintaan antrean ketika tidak ada cukup utas gratis untuk memprosesnya.

Nota

Ketika jumlah permintaan yang diantrekan melebihi batas yang diberlakukan oleh pengaturan ini, permintaan masuk akan ditolak dengan kesalahan "503 - Server Terlalu Sibuk".

Berlaku untuk