RestWebHeaderCollectionAdd Method |
Inserts a header with the specified name and value into the collection.
Namespace: net.openstack.CoreAssembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax public override void Add(
string name,
string value
)
Public Overrides Sub Add (
name As String,
value As String
)
public:
virtual void Add(
String^ name,
String^ value
) override
abstract Add :
name : string *
value : string -> unit
override Add :
name : string *
value : string -> unit
Parameters
- name
- Type: SystemString
The header to add to the collection. - value
- Type: SystemString
The content of the header.
Exceptions 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