[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 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 NameAttribute Value
Data TypeDWORD
AttributesINHERIT
Default ValueDirBrowseShowDate | DirBrowseShowTime | DirBrowseShowSize | DirBrowseShowExtension | EnableDefaultDoc
MetaFlagsExCACHE_PROPERTY_MODIFIED
User TypeIIS_MD_UT_FILE
StartingNumber
EndingNumber0
ID6005

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_DIRECTORY_BROWSING
Data typeDWORD
User typeIIS_MD_UT_FILE

Flags

NameValueMetabase Bitmask IdentifierDescription
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.