IScriptMapInfo 介面

擷取要求處理常式的組態設定。

Syntax

class IScriptMapInfo  

方法

下表列出 介面所 IScriptMapInfo 公開的方法。

名稱 描述
GetAllowedVerbs 擷取腳本對應允許的動詞清單。
GetAllowPathInfoForScriptMappings 擷取值,指出腳本對應處理常式是否將 allowPathInfo 屬性設定為 true 。
GetIsStarScriptMap 擷取值,指出要求處理常式是否為萬用字元對應。
GetManagedType 擷取要求處理常式的 Managed 型別。
GetModules 擷取要求處理常式的模組清單。
GetName 擷取要求處理常式的已設定名稱。
GetPath 擷 path 取要求處理常式的屬性。
GetRequiredAccess 擷取腳本處理器的必要存取設定。
GetResourceType 擷取要求處理常式的資源類型。
GetResponseBufferLimit 擷取腳本處理器的回應緩衝區限制。
GetScriptProcessor 擷取要求處理常式的腳本處理器。

備註

IIS 7 中要求處理常式的設定會儲存在ApplicationHost.config檔案中,並包含定義要求處理常式運作方式的各種屬性。 例如,下列來自ApplicationHost.config檔案的摘錄顯示 ASP 3.0 或更早版本的一些可能組態設定、Internet Server API (ISAPI) DLL,以及靜態檔案處理。

<handlers>  
    <add name="ASPClassic"  
        path="*.asp"  
        verb="GET,HEAD,POST"  
        modules="IsapiModule"  
        scriptProcessor="D:\Windows\system32\inetsrv\asp.dll"  
        resourceType="File" />  
    <add name="ISAPI-dll"  
        path="*.dll"  
        verb="*"  
        modules="IsapiModule"  
        resourceType="File"  
        requireAccess="Execute"  
        allowPathInfo="true" />  
    <add name="StaticFile"  
        path="*"  
        verb="*"  
        modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule"  
        resourceType="Either"  
        requireAccess="Read"/>  
</handlers>  

實作 介面的 IScriptMapInfo 類別可以擷取要求處理常式的各種屬性,而不需要直接存取ApplicationHost.config檔案。

規格需求

類型 描述
Client - 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
- IIS Express 7.5、IIS Express 8.0、IIS Express 10.0
標頭 Httpserv.h

另請參閱

Web Server Core 介面