다음을 통해 공유


RequestLimitsElement 클래스

들어오는 HTTP 요청에 대한 크기 제한을 지정합니다.

구문

class RequestLimitsElement : EmbeddedObject  

메서드

이 클래스에는 메서드가 없습니다.

속성

다음 표에서는 클래스에서 노출하는 속성을 나열합니다 RequestLimitsElement .

속성 Description
HeaderLimits HTTP 헤더 크기를 지정 하는 HeaderLimitsSettings 값입니다.
MaxAllowedContentLength 요청에서 콘텐츠의 최대 길이(바이트)를 지정하는 읽기/쓰기 uint32 값입니다. 기본값은 300000000(약 30MB)입니다.
MaxQueryString 쿼리 문자열의 최대 길이(바이트)를 지정하는 읽기/쓰기 uint32 값입니다. 기본값은 2048입니다.
MaxUrl 요청 URL의 최대 길이(바이트)를 지정하는 읽기/쓰기 uint32 값입니다. 기본값은 260입니다.

를 서브클래싱합니다.

이 클래스에는 하위 클래스가 없습니다.

설명

이 클래스의 인스턴스는 RequestFilteringSection 클래스의 배열 속성에 포함 RequestLimits 됩니다.

이 클래스는 이전 버전의 IIS에서 사용하는 URLScan 도구의 설정을 IIS 7 RequestLimits 에 통합합니다.

참고

이 클래스의 설정을 적용하려면 요청 필터링 모듈(Modrqflt.dll)을 설치해야 합니다.

예제

다음 예에서는 클래스의 모든 속성을 표시합니다 RequestLimitsElement .

' Connect to the WMI WebAdministration namespace.  
Set objWMIService = GetObject("winmgmts:root\WebAdministration")  
  
' Get the RequestFilteringSection.  
Set oRequestFilteringSection = objWMIService.Get( _  
"RequestFilteringSection.Path='MACHINE/WEBROOT/APPHOST',Location=''")  
  
' Set a variable to the RequestFilteringSection.RequestLimits property,  
' which contains an array of RequestLimitsElement objects.  
Set oRequestLimitsElement = oRequestFilteringSection.RequestLimits  
  
' Display the path and list the non-array RequestLimitsElement properties.  
WScript.Echo "[Request Limits]"  
WScript.Echo "Path: " & oRequestFilteringSection.Path   
WScript.Echo "maxAllowedContentLength: " & _  
    oRequestLimitsElement.maxAllowedContentLength  
WScript.Echo "maxUrl: " & oRequestLimitsElement.maxUrl  
WScript.Echo "maxQueryString: " & oRequestLimitsElement.maxQueryString  
WScript.Echo   
  
' List the contents of the RequestLimitsElement.HeaderLimits.HeaderLimits  
' property, which contains an array of HeaderLimitsElement instances.  
WScript.Echo vbtab & "[Header Limits]"  
For Each oHeaderLimit In oRequestLimitsElement.HeaderLimits.HeaderLimits  
    WScript.Echo vbtab & "Header: " & oHeaderLimit.Header  
    WScript.Echo vbtab & "Header size limit: " & oHeaderLimit.sizeLimit  
    WScript.Echo   
Next  

상속 계층 구조

EmbeddedObject

RequestLimitsElement

요구 사항

형식 Description
클라이언트 - Windows Vista의 IIS 7.0
- Windows 7의 IIS 7.5
- Windows 8의 IIS 8.0
- WINDOWS 10 IIS 10.0
서버 - Windows Server 2008의 IIS 7.0
- Windows Server 2008 R2의 IIS 7.5
- Windows Server 2012의 IIS 8.0
- Windows Server 2012 R2의 IIS 8.5
- WINDOWS SERVER 2016 IIS 10.0
제품 - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
MOF 파일 WebAdministration.mof

참고 항목

EmbeddedObject 클래스
FileExtensionsSettings 클래스
HeaderLimitsElement 클래스
HeaderLimitsSettings 클래스
RequestFilteringSection 클래스
<requestLimits>
VerbsSettings 클래스