HeaderLimitsElement 클래스
HTTP 요청 헤더의 허용된 크기를 지정합니다.
구문
class HeaderLimitsElement : CollectionElement
메서드
이 클래스에는 메서드가 없습니다.
속성
다음 표에서는 클래스에서 노출하는 속성을 나열합니다 HeaderLimitsElement
.
속성 | Description |
---|---|
Header |
HTTP 요청 헤더를 지정하는 필수 고유 읽기/쓰기 string 값입니다. 기본값은 null 참조입니다. 키 속성입니다. |
SizeLimit |
속성에 지정된 HTTP 요청 헤더의 최대 길이를 바이트 단위로 Header 지정하는 필수 uint32 값입니다. |
를 서브클래싱합니다.
이 클래스에는 하위 클래스가 없습니다.
설명
이 클래스의 인스턴스는 HeaderLimitsSettings 클래스의 배열 속성에 포함 HeaderLimits
됩니다.
이 클래스는 <headerLimits>
ApplicationHost.config 파일의 섹션에 있는 <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=''")
' Display the path and the contents of the
' RequestFilteringSection.RequestLimits.HeaderLimits.HeaderLimits
' property, which contains an array of HeaderLimitsElement instances.
WScript.Echo "[Header Limits]"
WScript.Echo "Path: " & oRequestFilteringSection.Path
WScript.Echo
For Each oHeaderLimit In oRequestFilteringSection.RequestLimits.HeaderLimits.HeaderLimits
WScript.Echo "Header: " & oHeaderLimit.Header
WScript.Echo "Header size limit: " & oHeaderLimit.sizeLimit
WScript.Echo
Next
상속 계층 구조
HeaderLimitsElement
요구 사항
형식 | 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 |
참고 항목
CollectionElement 클래스
HeaderLimitsSettings 클래스
RequestFilteringSection 클래스
RequestLimitsElement 클래스