IsapiCgiRestrictionSection クラス

ISAPI モードで実行される Web サーバーの ISAPI と Common Gateway Interface (CGI) の制限を構成します。

構文

class IsapiCgiRestrictionSection : ConfigurationSectionWithCollection  

メソッド

次の表に、IsapiCgiRestrictionSection クラスによって公開されるメソッドの一覧を示します。

名前 説明
[追加] (ConfigurationSectionWithCollection から継承。)
Clear (ConfigurationSectionWithCollection から継承。)
Get (ConfigurationSectionWithCollection から継承。)
GetAllowDefinition (ConfigurationSection から継承。)
GetAllowLocation (ConfigurationSection から継承。)
削除 (ConfigurationSectionWithCollection から継承。)
RevertToParent (ConfigurationSection から継承。)
SetAllowDefinition (ConfigurationSection から継承。)
SetAllowLocation (ConfigurationSection から継承。)

プロパティ

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

名前 説明
IsapiCgiRestriction ISAPI または CGI の制限を含む IsapiCgiRestrictionElement 値の配列。
Location (ConfigurationSection から継承。)キー プロパティ。
NotListedCgisAllowed 読み取り/書き込みの boolean 値。 リストにない CGI 制限を許可する場合は true。それ以外の場合は false。 既定値は、false です。
NotListedIsapisAllowed 読み取り/書き込みの boolean 値。 リストにない ISAPI 制限を許可する場合は true。それ以外の場合は false。 既定値は、false です。
Path (ConfigurationSection から継承。)キー プロパティ。
SectionInformation (ConfigurationSection から継承。)

サブクラス

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

解説

ISAPI と CGI の制限は、サーバー上での動的コンテンツの実行を可能にする要求ハンドラーです。 これらの制限は、CGI ファイル (.exe) または ISAPI 拡張機能 (.dll) のいずれかです。 既定では、Asp.dll ファイルと Aspnet_isapi.dll ファイルが含まれます。 IIS 構成で許可されている場合は、カスタムの ISAPI または CGI 制限を追加できます。

Note

IIS 7 を ISAPI モードで実行している場合は、Web サーバーで ISAPI または CGI の制限を使用できます。 IIS 7 を統合モードで実行している場合、この機能は使用できません。

次の例は、NotListedCgisAllowedNotListedIsapisAllowedPath の各プロパティの値を表示し、IsapiCgiRestriction 配列プロパティの内容を一覧表示します。

' Connect to the WMI WebAdministration namespace.  
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")  
  
' Get the default Web site.  
Set oSite = oWebAdmin.Get("Site.Name='Default Web Site'")  
  
' Get the ISAPI-CGI restriction section.  
oSite.GetSection "IsapiCgiRestrictionSection", oSection  
  
' Display the non-array IsapiCgiRestrictionSection properties.  
WScript.Echo "ISAPI CGI Restriction Section"  
WScript.Echo "-----------------------------"  
WScript.Echo "Path: " & oSection.Path  
WScript.Echo "NotListedCgisAllowed: " & _  
    oSection.NotListedCgisAllowed  
WScript.Echo "NotListedIsapisAllowed: " & _  
    oSection.NotListedIsapisAllowed  
WScript.Echo   
  
' Display the contents of the IsapiCgiRestriction array property.  
WScript.Echo vbTab & "ISAPI CGI Restriction Elements"  
WScript.Echo vbtab & "------------------------------"  
For Each oIsapiCgiRestrictionElement In oSection.IsapiCgiRestriction  
    WScript.Echo  vbtab & "GroupID: " & _  
        oIsapiCgiRestrictionElement.GroupID  
    WScript.Echo  vbtab & "Description: " & _  
        oIsapiCgiRestrictionElement.Description  
    WScript.Echo  vbtab & "Path: " & _  
        oIsapiCgiRestrictionElement.Path  
    WScript.Echo  vbtab & "Allowed: " & _  
        oIsapiCgiRestrictionElement.Allowed  
    WScript.Echo  
Next  
  

継承階層

ConfigurationSection

ConfigurationSectionWithCollection

IsapiCgiRestrictionSection

要件

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

参照

ConfigurationSectionWithCollection クラス
IsapiCgiRestrictionElement クラス