Share via


AppRoot

This property contains the metabase path to the application root. For example, the metabase path for the application root of your Default Web Site is /LM/W3SVC/1/ROOT. To configure a key as an application root, use the application management methods of the IIsWebVirtualDir and IIsWebDirectory objects.

important Important Because this property is internally configured by IIS, you should consider it to be read-only. You should not configure this property.

Attribute Name Attribute Value
XML Data Type String
WMI Data Type
String
ADSI Data Type String
ABO Data Type String
ABO Metabase identifier
MD_APP_ROOT
Attributes INHERIT
Default Value null
MetaFlagsEx CACHE_PROPERTY_CLEARED
User Type IIS_MD_UT_FILE
StartingNumber Not applicable
EndingNumber Not applicable
ID 2103

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Metabase Path IIS Admin Object Type
/LM/W3SVC/n/ROOT
/LM/W3SVC/n/ROOT/virtual_directory_name
IIsWebVirtualDir
/LM/W3SVC/n IIsWebServer
/LM/W3SVC IIsWebService
/LM/W3SVC/n/ROOT/physical_directory_name
/LM/W3SVC/n/virtual_directory_name/physical_directory_name
IIsWebDirectory

Code Example

For general code examples, please see Code Examples to Configure Metabase Properties