add Element for files for defaultDocument [IIS Settings Schema]
Note
For more information about the add element, see the following topic on the Microsoft IIS.net Web site: Adding Default Document Files <add>.
Adds a file name to the list of default documents in the files collection.
Syntax
Attributes and Elements
The following sections describe attributes, child elements, and parent elements for this section.
Attributes
Attribute |
Description |
---|---|
name |
Optional string attribute. Specifies a file name of Web content that can be used as a default document. The value must be unique in the files collection, and it can be a file name or a relative path. |
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 root element in ApplicationHost.config that is the top-level section group in which this element is defined. |
files |
Specifies the file names that are configured as default documents. |
Remarks
For more information about the add element, see the following topic on the Microsoft IIS.net Web site: Adding Default Document Files <add>.
Element Information
Configuration locations |
Machine.config ApplicationHost.config Root level Web.config Application level Web.config Virtual or physical directory level Web.config |
Requirements |
Microsoft Internet Information Services (IIS) version 7.0 |