HttpRuntimeSection.RequestLengthDiskThreshold 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 la soglia di buffering del flusso di input.
public:
property int RequestLengthDiskThreshold { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("requestLengthDiskThreshold", DefaultValue=80)]
[System.Configuration.IntegerValidator(MinValue=1)]
public int RequestLengthDiskThreshold { get; set; }
[<System.Configuration.ConfigurationProperty("requestLengthDiskThreshold", DefaultValue=80)>]
[<System.Configuration.IntegerValidator(MinValue=1)>]
member this.RequestLengthDiskThreshold : int with get, set
Public Property RequestLengthDiskThreshold As Integer
Valore della proprietà
Numero di kilobyte che indicano la soglia di buffering del flusso di input. Il valore predefinito è 80 kilobyte.
- Attributi
Eccezioni
Il valore selezionato è maggiore di MaxRequestLength.
Esempio
Nell'esempio seguente viene illustrato come utilizzare la RequestLengthDiskThreshold proprietà .
// Get the RequestLengthDiskThreshold property value.
Response.Write("RequestLengthDiskThreshold: " +
configSection.RequestLengthDiskThreshold + "<br>");
// Set the RequestLengthDiskThreshold property value to 512 kilobytes.
configSection.RequestLengthDiskThreshold = 512;
' Get the RequestLengthDiskThreshold property value.
Response.Write("RequestLengthDiskThreshold: " & _
configSection.RequestLengthDiskThreshold & "<br>")
' Set the RequestLengthDiskThreshold property value to 512 kilobytes.
configSection.RequestLengthDiskThreshold = 512
Commenti
La RequestLengthDiskThreshold proprietà specifica il limite soglia di buffering del flusso di input in numero di kilobyte. Il valore non deve superare il valore della MaxRequestLength proprietà. Dopo che un'entità richiesta supera questa soglia, viene memorizzata nel buffer in modo trasparente sul disco.