[This is preliminary documentation and subject to change]

### DirBrowseFlags

This property contains flags, as seen in the flags section below, that control whether directory browsing is enabled, how much directory and file information is provided if browsing is enabled, and whether there is a default page in the directory.

Note If a client accesses the directory and does not provide a file name, and the EnableDefaultDoc flag is set to TRUE, the server will look for the file specified in the property DefaultDoc. If the default file does not exist in the directory, and the EnableDirBrowsing flag is set to TRUE, then directory browsing is enabled.

Attribute Name | Attribute Value
Data Type | DWORD
Attributes | INHERIT
Default Value | DirBrowseShowDate | DirBrowseShowTime | DirBrowseShowSize | DirBrowseShowExtension | EnableDefaultDoc
MetaFlagsEx | CACHE_PROPERTY_MODIFIED
User Type | IIS_MD_UT_FILE
StartingNumber |
EndingNumber | 0
ID | 6005

### Access Locations

This property is accessible at the following locations:

Metabase Path | IIS Admin Object Type
/LM/W3SVC/2 | IIsWebServer
/LM/W3SVC/Info/Templates/Public Web Site | IIsWebServer
/LM/W3SVC/Info/Templates/Secure Web Site | IIsWebServer
/LM/W3SVC | IIsWebService
/LM/W3SVC/1/ROOT | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/_vti_bin | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISAdmin | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISHelp | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/MSADC | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/Scripts | IIsWebVirtualDir
/LM/W3SVC/2/ROOT | IIsWebVirtualDir
/LM/W3SVC/2/ROOT/IISAdmin | IIsWebVirtualDir

### 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_DIRECTORY_BROWSING
Data type | DWORD
User type | IIS_MD_UT_FILE

### Flags

Name | Value | Metabase Bitmask Identifier | Description
EnableDirBrowsing | 2147483648 | | MD_DIRBROW_ENABLED | When set to TRUE, directory browsing is enabled.
DirBrowseShowDate | 2 | | MD_DIRBROW_SHOW_DATE | When set to true, date information will be displayed when browsing directories.
DirBrowseShowTime | 4 | | MD_DIRBROW_SHOW_TIME | When set to TRUE, file time information will be displayed when displaying directories.
DirBrowseShowSize | 8 | | MD_DIRBROW_SHOW_SIZE | When set to TRUE, file size information will be displayed when browsing directories.
DirBrowseShowExtension | 16 | | MD_DIRBROW_SHOW_EXTENSION | When set to TRUE, file name extensions are displayed when browsing directories.
DirBrowseShowLongDate | 32 | | MD_DIRBROW_LONG_DATE | When set to TRUE, date information is displayed in extended format when displaying directories.
EnableDefaultDoc | 1073741824 | | MD_DIRBROW_LOADDEFAULT | When set to TRUE, the default document (specified by the DefaultDoc property) for a directory will be loaded when the directory is browsed.

© 1997-2001 Microsoft Corporation. All rights reserved.