KeyValueElement Class
Contains a key/value pair that represents a setting for a Web application.
Syntax
class KeyValueElement : CollectionElement
Methods
This class contains no methods.
Properties
The following table lists the properties exposed by the KeyValueElement
class.
Name | Description |
---|---|
Key |
A required unique read/write string value that contains the name of an application setting. The key property. |
Value |
A read/write string value that contains the value for the application setting specified in the Key property. |
Subclasses
This class contains no subclasses.
Remarks
Instances of this class are exposed as members of the Settings
property of the AppSettingsSection class.
Inheritance Hierarchy
KeyValueElement
Requirements
Type | Description |
---|---|
Client | - IIS 7.0 on Windows Vista - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
Server | - IIS 7.0 on Windows Server 2008 - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 |
MOF file | WebAdministration.mof |