HttpRuntimeSection.MinLocalRequestFreeThreads 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 il numero minimo di thread liberi necessari per gestire una richiesta locale.
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
Valore della proprietà
Numero minimo di thread liberi assegnati alle richieste locali. Il valore predefinito è 4.
- Attributi
Esempio
Nell'esempio seguente viene illustrato come utilizzare la MinLocalRequestFreeThreads proprietà .
// 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
Commenti
La MinLocalRequestFreeThreads proprietà definisce il numero di thread liberi che ASP.NET mantiene disponibili per consentire l'esecuzione di nuove richieste locali. Lo scopo consiste nell'evitare un possibile deadlock con reentry ricorsiva nel server Web.