System.Web.Configuration.HttpRuntimeSection.MaxRequestLength Property

Gets or sets the maximum request size.

Syntax

[System.Configuration.ConfigurationProperty("maxRequestLength", DefaultValue="4096")]
[System.Configuration.IntegerValidator(MinValue=0, MaxValue=2147483647)]
public int MaxRequestLength { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The HttpRuntimeSection.MaxRequestLength property specifies the limit for the buffering threshold of the input stream. For example, this limit can be used to prevent denial of service attacks that are caused by users who post large files to the server.

The value assigned to this property should be greater or equal to value assigned to the HttpRuntimeSection.RequestLengthDiskThreshold property.

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0