HttpRuntimeSection.MaxRequestLength 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
최대 요청 크기를 가져오거나 설정합니다.
public:
property int MaxRequestLength { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxRequestLength", DefaultValue=4096)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int MaxRequestLength { get; set; }
[<System.Configuration.ConfigurationProperty("maxRequestLength", DefaultValue=4096)>]
[<System.Configuration.IntegerValidator(MinValue=0)>]
member this.MaxRequestLength : int with get, set
Public Property MaxRequestLength As Integer
속성 값
최대 요청 크기(킬로바이트)입니다. 기본 크기는 4096KB(4MB)입니다.
- 특성
예외
선택한 값이 .보다 RequestLengthDiskThreshold작습니다.
예제
다음 예제에서는 현재 MaxRequestLength 속성 값을 가져오는 방법을 보여 있습니다.
// Get the MaxRequestLength property value.
Response.Write("MaxRequestLength: " +
configSection.MaxRequestLength + "<br>");
// Set the MaxRequestLength property value to 2048 kilobytes.
configSection.MaxRequestLength = 2048;
' Get the MaxRequestLength property value.
Response.Write("MaxRequestLength: " & _
configSection.MaxRequestLength & "<br>")
' Set the MaxRequestLength property value to 2048 kilobytes.
configSection.MaxRequestLength = 2048
설명
이 속성은 MaxRequestLength 입력 스트림의 버퍼링 임계값에 대한 제한을 지정합니다. 예를 들어 이 제한을 사용하여 서버에 대용량 파일을 게시하는 사용자로 인해 발생하는 서비스 거부 공격을 방지할 수 있습니다.
이 속성에 할당된 값은 속성에 할당된 RequestLengthDiskThreshold 값보다 크거나 같아야 합니다.