HttpRuntimeSection.RequestLengthDiskThreshold Proprietà

Definizione

Ottiene o imposta la soglia del buffer per il 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à

Int32

Numero di byte che indica la soglia del buffer per il 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 proprietà RequestLengthDiskThreshold.

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

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

' Set the RequestLengthDiskThreshold property value to 512 bytes.
configSection.RequestLengthDiskThreshold = 512

Commenti

La RequestLengthDiskThreshold proprietà specifica il limite di soglia di buffering del flusso di input in numero di byte. Il valore non deve superare il valore della MaxRequestLength proprietà. Dopo che un'entità richiesta supera questa soglia, viene memorizzata in buffer trasparente sul disco.

Si applica a