files Element for defaultDocument [IIS Settings Schema]
Note
For more information about the files element, see the following topic on the Microsoft IIS.net Web site: Default Document Files <files>.
Specifies the file names that are configured as default documents.
Syntax
Attributes and Elements
The following sections describe attributes, child elements, and parent elements for this section.
Attributes
None.
Child Elements
Element |
Description |
---|---|
add |
Optional element. Adds a file name to the collection of files. |
remove |
Optional element. Removes a reference to a file name from the files collection. |
clear |
Optional element. Removes all references to file names from the files collection. |
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. |
defaultDocument |
Configures settings for returning a default document to a client browser when the client does not specify a file name in a request. |
Remarks
For more information about the files element, see the following topic on the Microsoft IIS.net Web site: Default Document Files <files>.
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 |
See Also
Reference
add Element for files for defaultDocument [IIS Settings Schema]