Click or drag to resize
RestWebHeaderCollectionAdd Method
Inserts a header with the specified name and value into the collection.

Namespace: net.openstack.Core
Assembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax
public override void Add(
	string name,
	string value
)

Parameters

name
Type: SystemString
The header to add to the collection.
value
Type: SystemString
The content of the header.
Exceptions
ExceptionCondition
ArgumentException A name is , Empty, or contains invalid characters.

-or-

A value contains invalid characters.

ArgumentOutOfRangeExceptionThe length of value is greater than 65535.
Remarks
If the header specified in name does not exist, the Add(String, String) method inserts a new header into the list of header name/value pairs.

If the header specified in name is already present, value is added to the existing comma-separated list of values associated with name.

Version Information

.NET Framework

Supported in: 4.5

openstack.net

Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also