The <property> element of the <key> element adds a metabase property to the collection of metabase properties.
Important Note: The <customMetadata> section of the configuration should not be modified directly. Use the metabase APIs to set any metabase settings that are represented in this section.
In IIS 6.0, all of the IIS settings were kept in the metabase. In addition, any custom settings that were required by applications were stored in the metabase. In IIS 7.0, all IIS settings are now kept in ApplicationHost.config and Web.config Files. IIS 7.0 provides backwards-compatibility through the IIS 6 Metabase Compatibility feature, which is sometimes referred to as the Admin Base Object (ABO) mapper component. This feature listens for applications that attempt to write to the metabase, and maps all IIS 6.0 metabase settings to their IIS 7.0 equivalents. If an IIS 6.0 setting has no IIS 7.0 equivalent, the setting will be written to the <customMetadata> element.
| |
IIS 7.0 |
IIS 6.0 |
| Notes |
The <property> element of the <key> element is new in IIS 7.0. |
The <customMetadata> element replaces any IIS 6.0 metabase objects that are not directly mapped to IIS 7.0 configuration elements. |
The <customMetadata> element is not available on the default installation of IIS 7.0. To install it, use the following steps.
Windows Server 2008
- On the taskbar, click Start, point to Administrative Tools, and then click Server Manager.
- In the Server Manager hierarchy pane, expand Roles, and then click Web Server (IIS).
- In the Web Server (IIS) pane, scroll to the Role Services section, and then click Add Role Services.
- On the Select Role Services page of the Add Role Services Wizard, select IIS 6 Metabase Compatibility, and then click Next.
- On the Confirm Installation Selections page, click Install.
- On the Results page, click Close.
Windows Vista
- On the taskbar, click Start, and then click Control Panel.
- In Control Panel, click Programs and Features, and then click Turn Windows Features on or off.
- Expand Internet Information Services, then select IIS Metabase and IIS 6 configuration compatibility, and then click OK.
The <customMetadata> section of the configuration should not be modified directly; therefore, no examples are available.
Attributes
| Attribute |
Description |
id |
Optional unit attribute.
Specifies the unique identifier of the metabase entry. |
dataType |
Required enum attribute.
Specifies the type of data to retrieve.
The dataType attribute can be one of the following possible values.
| Value |
Description |
DWord |
An unsigned 32-bit number.
The numeric value is 1. |
String |
A null-terminated ASCII string.
The numeric value is 2. |
Binary |
Binary data in any form.
The numeric value is 3. |
ExpandSZ |
A null-terminated string that contains unexpanded environment variables, such as %PATH%.
The numeric value is 4. |
MultiSZ |
An array of null-terminated strings, terminated by two null characters.
The numeric value is 5. |
|
userType |
Optional unit attribute.
Specifies the user type of the data.
The default value is 1.
|
| Attributes |
Optional flags attribute.
Specifies the flags, contained in the METADATA_RECORD structure, that are used to get the data.
The attributes attribute can be one of the following possible values.
The default value is Inherit.
| Value |
Description |
None |
Specifies that no flags are set.
The numeric value is 0. |
Inherit |
Specifies that the data can be inherited.
The numeric value is 1. |
PartialPath |
Returns any inherited data even if the complete path is not available. This flag is only valid when the Inherit flag is also set.
The numeric value is 2. |
Secure |
Specifies that the data is stored and transported in a secure manner.
The numeric value is 4. |
Reference |
Specifies that the data was retrieved by reference.
The numeric value is 8. |
Volatile |
Specifies that the data is not stored in long-term storage.
The numeric value is 16. |
IsInherited |
Denotes that the data items were inherited.
The numeric value is 32. |
InsertPath |
Replaces MD_INSERT_PATH_STRINGW with the path of the data item relative to the handle.
The numeric value is 64. |
LocalMachineOnly |
Specifies that the data is not replicated during web cluster replication.
The numeric value is 128. |
NonSecureOnly |
Specifies that secure properties should not be retrieved when using metabase functions that return all data.
The numeric value is 256. |
|
Value |
Optional case-sensitive string attribute.
Specifies a custom value. |
Child Elements
None.
The <customMetadata> section of the configuration should not be modified directly; therefore, no examples are available.