HttpListenerResponseAddHeader Method |
Namespace: Sfs2X.WebSocketSharp.Net
public void AddHeader( string name, string value )
| Exception | Condition |
|---|---|
| ArgumentNullException | name is or empty. |
| ArgumentException | name or value contains invalid characters. -or- name is a restricted header name. |
| ArgumentOutOfRangeException | The length of value is greater than 65,535 characters. |
| InvalidOperationException | The header cannot be allowed to add to the current headers. |