RequestLimitsElement クラス

受信 HTTP 要求のサイズ制限を指定します。

構文

class RequestLimitsElement : EmbeddedObject  

メソッド

このクラスにはメソッドが含まれていません。

プロパティ

次の表は、RequestLimitsElement クラスによって公開されるプロパティの一覧です。

名前 説明
HeaderLimits HTTP ヘッダー サイズを指定する HeaderLimitsSettings 値。
MaxAllowedContentLength 要求内のコンテンツの最大長 (バイト単位) を指定する読み取り/書き込み uint32 値。 既定値は 30000000 (約 30 メガバイト) です。
MaxQueryString クエリ文字列の最大長をバイト単位で指定する読み取り/書き込み uint32 値。 既定値は 2048 です。
MaxUrl 要求 URL の最大長 (バイト単位) を指定する読み取り/書き込み uint32 値。 既定値は 260 です。

サブクラス

このクラスにはサブクラスが含まれていません。

解説

このクラスのインスタンスは、RequestFilteringSection クラスの RequestLimits 配列プロパティに含まれています。

このクラスは、以前のバージョンの IIS で使用される URLScan ツールの RequestLimits 設定を IIS 7に統合します。

Note

このクラスの設定を有効にするには、要求のフィルタリング モジュール (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

要件

説明
クライアント - 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
Product - 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 クラス