[This is preliminary documentation and subject to change]

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 flag of the DirBrowseFlags 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.

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

Attribute NameAttribute Value
Data TypeSTRING
AttributesINHERIT
Default Valuedefault.htm
MetaFlagsExCACHE_PROPERTY_MODIFIED
User TypeIIS_MD_UT_FILE
StartingNumber
EndingNumber
ID6006

Access Locations

This property is accessible at the following locations:

Metabase PathIIS Admin Object Type
/LM/W3SVC/2IIsWebServer
/LM/W3SVC/Info/Templates/Public Web SiteIIsWebServer
/LM/W3SVC/Info/Templates/Secure Web SiteIIsWebServer
/LM/W3SVCIIsWebService
/LM/W3SVC/1/ROOTIIsWebVirtualDir
/LM/W3SVC/1/ROOT/_vti_binIIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISAdminIIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISHelpIIsWebVirtualDir
/LM/W3SVC/1/ROOT/MSADCIIsWebVirtualDir
/LM/W3SVC/1/ROOT/ScriptsIIsWebVirtualDir
/LM/W3SVC/2/ROOTIIsWebVirtualDir
/LM/W3SVC/2/ROOT/IISAdminIIsWebVirtualDir

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
Data typeSTRING
User typeIIS_MD_UT_FILE

Related Topics

DirBrowseFlags

© 1997-2001 Microsoft Corporation. All rights reserved.