WebHeaderCollection..::..Remove Method (HttpRequestHeader)
Removes the specified request header from the collection.
Namespace:
WebSocketSharp.NetAssembly: C-DEngine (in C-DEngine.dll)
Syntax
public void Remove( HttpRequestHeader header )
Public Sub Remove ( _ header As HttpRequestHeader _ )
public: void Remove( HttpRequestHeader^ header )
Parameters
- header
- Type: WebSocketSharp.Net..::..HttpRequestHeader
One of the HttpRequestHeader enum values, represents the request header to remove.
Exceptions
Exception | Condition |
---|---|
ArgumentException | header is a restricted header. |
InvalidOperationException | The current WebHeaderCollection instance doesn't allow the request header. |