Export (0) Print
Expand All

IScriptMapInfo Interface

IIS 7.0

Retrieves configuration settings for request handlers.

class IScriptMapInfo

The following table lists the methods exposed by the IScriptMapInfo interface.

Name

Description

GetAllowedVerbs

Retrieves the list of allowed verbs for a script map.

GetAllowPathInfoForScriptMappings

Retrieves a value that indicates whether a script map handler has the allowPathInfo attribute set to true.

GetIsStarScriptMap

Retrieves a value that indicates whether a request handler is a wildcard mapping.

GetManagedType

Retrieves the managed type for a request handler.

GetModules

Retrieves the list of modules for a request handler.

GetName

Retrieves the configured name for a request handler.

GetPath

Retrieves the path attribute for a request handler.

GetRequiredAccess

Retrieves the required-access setting for the script processor.

GetResourceType

Retrieves the resource type for a request handler.

GetResponseBufferLimit

Retrieves the response buffer limit for the script processor.

GetScriptProcessor

Retrieves the script processor for a request handler.

The settings for request handlers in IIS 7 are stored in the ApplicationHost.config file, and they contain various attributes that define how request handlers work. For example, the following excerpt from an ApplicationHost.config file shows some of the possible configuration settings for ASP 3.0 or earlier, Internet Server API (ISAPI) DLLs, and static file handling.

<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>

Classes that implement the IScriptMapInfo interface can retrieve the various attributes for request handlers without having to access the ApplicationHost.config file directly.

Type

Description

Client

  • IIS 7.0 on Windows Vista

  • IIS 7.5 on Windows 7

  • IIS Express 7.5 on Windows XP, Windows Vista, Windows 7

  • IIS 8.0 on Windows 8 Client

Server

  • IIS 7.0 on Windows Server 2008

  • IIS 7.5 on Windows Server 2008 R2

  • IIS Express 7.5 on Windows Server 2003, Windows Server 2008, Windows Server 2008 R2

  • IIS 8.0 on Windows Server 2012

Product

IIS 7.0, IIS 7.5, IIS Express 7.5, IIS 8.0

Header

Httpserv.h

Community Additions

ADD
Show:
© 2015 Microsoft