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.Set

Sets the specified header to the specified value.

[Visual Basic]
Overrides Public Sub Set( _
   ByVal name As String, _
   ByVal value As String _
)
[C#]
public override void Set(
   string name,
   string value
);
[C++]
public: override void Set(
   String* name,
   String* value
);
[JScript]
public override function Set(
   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.

See Also

WebHeaders Class | WebHeaders Members | System.Net Namespace