### DefaultDoc

This property contains one or more file names of default documents that will be returned to the client if no file name is included in the client's request. The default document will be returned if the EnableDefaultDoc property is TRUE for the directory. This property can contain a list of default document file names separated by a comma and a space, for example Default1.htm, Default2.htm.

Data type | String
Default value | Default.htm; Default.asp
Inheritance | Inheritable

###### Access Locations

This property is accessible at the following locations:

Metabase Path | Key Type
/LM/W3SVC | IIsWebService
/LM/W3SVC/N | IIsWebServer
/LM/W3SVC/N/ROOT | IIsWebVirtualDir
/LM/W3SVC/N/ROOT/WebVirtualDir | IIsWebVirtualDir
/LM/W3SVC/N/ROOT/WebVirtualDir/WebDirectory | IIsWebDirectory

###### IIS Admin Base Object Information

The following table lists additional information required only for code that uses the IIS Admin Base Object.

Metabase identifier | MD_DEFAULT_LOAD_FILE
User type | IIS_MD_UT_FILE

###### Remarks

If the EnableDefaultDoc flag is not set in the DirBrowseFlags property, the server will not search for a default document.

###### See Also

DirBrowseFlags

© 1997-2001 Microsoft Corporation. All rights reserved.