WebHeaderCollection..::..Add Method (HttpResponseHeader, String)
Adds the specified response header with
the specified value to the collection.
Namespace:
WebSocketSharp.NetAssembly: C-DEngine (in C-DEngine.dll)
Syntax
public void Add( HttpResponseHeader header, string value )
Public Sub Add ( _ header As HttpResponseHeader, _ value As String _ )
public: void Add( HttpResponseHeader^ header, String^ value )
Parameters
- header
- Type: WebSocketSharp.Net..::..HttpResponseHeader
One of the HttpResponseHeader enum values, represents the response header to add.
Exceptions
Exception | Condition |
---|---|
ArgumentException | header is a restricted header. -or- value contains invalid characters. |
ArgumentOutOfRangeException | The length of value is greater than 65,535 characters. |
InvalidOperationException | The current WebHeaderCollection instance doesn't allow the response header. |