Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpRuntimeSection.RequestLengthDiskThreshold Property

Gets or sets the input-stream buffering threshold.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)

public int RequestLengthDiskThreshold { get; set; }
/** @property */
public int get_RequestLengthDiskThreshold ()

/** @property */
public void set_RequestLengthDiskThreshold (int value)

public function get RequestLengthDiskThreshold () : int

public function set RequestLengthDiskThreshold (value : int)

Not applicable.

Property Value

The number of bytes that indicate the input-stream buffering threshold. The default is 256 bytes.

Exception typeCondition

ConfigurationErrorsException

The selected value is greater than MaxRequestLength.

The RequestLengthDiskThreshold property specifies the input-stream buffering threshold limit in number of bytes. Its value should not exceed the MaxRequestLength property value. After a request entity exceeds this threshold, it is buffered transparently onto disk.

The following example shows how to use the RequestLengthDiskThreshold property.

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

// Set the RequestLengthDiskThreshold property value to 512 bytes.
configSection.RequestLengthDiskThreshold = 512;

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft