NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

WebHeaders.Add (String, String)

Adds a new header with the indicated name and value.

[Visual Basic]
Overloads Overrides Public Sub Add( _
   ByVal name As String, _
   ByVal value As String _
)
[C#]
public override void Add(
   string name,
   string value
);
[C++]
public: override void Add(
   String* name,
   String* value
);
[JScript]
public override function Add(
   name : String,
   value : String
);

Parameters

name
The header to add.
value
[To be supplied.]

Exceptions

Exception Type Condition
ArgumentException header is a restricted header that should be set with a property setting.

Remarks

If the header specified in header is already present, value is concatenated with the existing value.

See Also

WebHeaders Class | WebHeaders Members | System.Net Namespace | WebHeaders.Add Overload List