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 );
Exception Type | Condition |
---|---|
ArgumentException | header is a restricted header that should be set with a property setting. |
WebHeaders Class | WebHeaders Members | System.Net Namespace