add Element for handlers [IIS Settings Schema]
Note
For more information about the add element, see the following topic on the Microsoft IIS.net Web site: Adding Handlers <add>.
Specifies a handler to be added to the handlers collection.
Syntax
Attributes and Elements
The following sections describe attributes, child elements, and parent elements for this section.
Attributes
Attribute |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
allowPathInfo |
Optional Boolean attribute. Specifies whether the handler processes full path information in a URI, such as contoso/marketing/imageGallery.aspx. If the value is true, the handler processes the full path, contoso/marketing/imageGallery. If the value is false, the handler processes only the last section of the path, /imageGallery. The default value is false. |
||||||||
modules |
Optional string attribute. Specifies the name of the module or modules to which you want to map the file name or file name with extension. If you specify more than one value, separate the values with a comma (,). The default value is ManagedPipelineHandler. |
||||||||
name |
Required string attribute. Specifies the unique name of the handler mapping. |
||||||||
path |
Required string attribute. Specifies the file name extension or the file name with extension for which the handler mapping applies. |
||||||||
preCondition |
Optional string attribute. Specifies conditions under which the handler will run. The preCondition attribute can be one or more of the following possible values. If you specify more than one value, separate the values with a comma (,).
|
||||||||
requireAccess |
Optional enum attribute. Specifies the type of access that a handler requires to the resource. The requireAccess attribute can be one or more of the following possible values. If you specify more than one value, separate the values with a comma (,). The default value is Script.
|
||||||||
resourceType |
Optional string attribute. Specifies the type of resource to which the handler mapping applies. The resourceType attribute can be one of the following possible values. The default value is Unspecified.
|
||||||||
responseBufferLimit |
Optional integer attribute. Specifies the maximum size, in bytes, of the response buffer for a request handler. The default value is 4194304 bytes. |
||||||||
scriptProcessor |
Optional string attribute. Specifies the physical path of the ISAPI extension .dll file or Common Gateway Interface (CGI) .exe file that processes the request. The scriptProcessor attribute is required only for script map handler mappings. When you map a handler to an ISAPI extension, you must specify ISAPIModule for the modules attribute. When you map a handler to a CGI file, you must specify CGIModule for the modules attribute. |
||||||||
type |
Optional string attribute. Specifies the namespace path of a managed handler. The type attribute is required only for managed handlers. |
||||||||
verb |
Required string attribute. Specifies the HTTP verbs for which the handler mapping applies. |
Child Elements
None.
Parent Elements
Element |
Description |
---|---|
configuration |
Specifies the root element in every configuration file that is used by IIS 7. |
system.webServer |
Specifies the top-level section group (in ApplicationHost.config) in which this element is defined. |
handlers |
Specifies handlers to process requests made to sites and applications. |
Remarks
For more information about the add element, see the following topic on the Microsoft IIS.net Web site: Adding Handlers <add>.
Element Information
Configuration locations |
Machine.config ApplicationHost.config Root application Web.config Application Web.config Directory Web.config |
Requirements |
Microsoft Internet Information Services (IIS) version 7.0 |