NameValueConfigurationElement Class [IIS 7 and higher]

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

CollectionElement

   NameValueConfigurationElement

Requirements

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

See Also

Reference

CollectionElement Class [IIS 7 and higher]

CustomHeaderSettings Class [IIS 7 and higher]

HttpProtocolSection Class [IIS 7 and higher]

RedirectHeaderSettings Class [IIS 7 and higher]