NameValueConfigurationElement Class
Contains a name/value pair for an HTTP response header.
Syntax
class NameValueConfigurationElement : CollectionElement
Methods
This class contains no methods.
Properties
The following table lists the properties exposed by the NameValueConfigurationElement
class.
Name | Description |
---|---|
Name |
A required unique read/write string value that contains the name part of an HTTP response header name/value pair. The key property. |
Value |
A read/write string value that contains the value part of an HTTP response header name/value pair. |
Subclasses
This class contains no subclasses.
Remarks
Instances of this class are contained in the CustomHeaders
array property of the CustomHeaderSettings class and in the RedirectHeaders
property of the RedirectHeaderSettings class.
Inheritance Hierarchy
NameValueConfigurationElement
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 |
See Also
CollectionElement Class
CustomHeaderSettings Class
HttpProtocolSection Class
RedirectHeaderSettings Class