Udostępnij za pośrednictwem


HttpRuntimeSection.RequestLengthDiskThreshold Właściwość

Definicja

Pobiera lub ustawia próg buforowania strumienia wejściowego.

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

Wartość właściwości

Liczba kilobajtów wskazujących próg buforowania strumienia wejściowego. Wartość domyślna to 80 kilobajtów.

Atrybuty

Wyjątki

Wybrana wartość jest większa niż MaxRequestLength.

Przykłady

W poniższym przykładzie pokazano, jak używać RequestLengthDiskThreshold właściwości .

// 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

Uwagi

Właściwość RequestLengthDiskThreshold określa limit progu buforowania strumienia wejściowego w liczbie kilobajtów. Jego wartość nie powinna przekraczać MaxRequestLength wartości właściwości. Po przekroczeniu tego progu jednostka żądania jest buforowana w sposób przezroczysty na dysku.

Dotyczy