WebHeaderCollectionAdd Method (String) |
Namespace: Sfs2X.WebSocketSharp.Net
public void Add( string header )
| Exception | Condition |
|---|---|
| ArgumentNullException | header is , empty, or the name part of header is empty. |
| ArgumentException | header doesn't contain a colon. -or- header is a restricted header. -or- The name or value part of header contains invalid characters. |
| ArgumentOutOfRangeException | The length of the value part of header is greater than 65,535 characters. |
| InvalidOperationException | The current WebHeaderCollection instance doesn't allow the header. |