HttpRuntimeSection.MinLocalRequestFreeThreads Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan atau menetapkan jumlah minimum utas gratis yang diperlukan untuk melayani permintaan lokal.
public:
property int MinLocalRequestFreeThreads { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("minLocalRequestFreeThreads", DefaultValue=4)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int MinLocalRequestFreeThreads { get; set; }
[<System.Configuration.ConfigurationProperty("minLocalRequestFreeThreads", DefaultValue=4)>]
[<System.Configuration.IntegerValidator(MinValue=0)>]
member this.MinLocalRequestFreeThreads : int with get, set
Public Property MinLocalRequestFreeThreads As Integer
Nilai Properti
Jumlah minimum utas gratis yang ditetapkan ke permintaan lokal. Nilai defaultnya adalah 4.
- Atribut
Contoh
Contoh berikut menunjukkan cara menggunakan MinLocalRequestFreeThreads properti .
// Get the MinLocalRequestFreeThreads property value.
Response.Write("MinLocalRequestFreeThreads: " +
configSection.MinLocalRequestFreeThreads + "<br>");
// Set the MinLocalRequestFreeThreads property value to 8.
configSection.MinLocalRequestFreeThreads = 8;
' Get the MinLocalRequestFreeThreads property value.
Response.Write("MinLocalRequestFreeThreads: " & _
configSection.MinLocalRequestFreeThreads & "<br>")
' Set the MinLocalRequestFreeThreads property value to 8.
configSection.MinLocalRequestFreeThreads = 8
Keterangan
Properti MinLocalRequestFreeThreads menentukan jumlah utas gratis yang ASP.NET tetap tersedia untuk memungkinkan eksekusi permintaan lokal baru. Tujuannya adalah untuk menghindari kemungkinan kebuntuan dengan masuk kembali rekursif ke server Web.