WebHeaderCollection..::..Add Method (String, String)
Adds a header with the specified name and
value to the collection.
Namespace:
WebSocketSharp.NetAssembly: C-DEngine (in C-DEngine.dll)
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | name is nullNothingnullptra null reference (Nothing in Visual Basic) 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 current WebHeaderCollection instance doesn't allow the header name. |