WebHeaderCollectionSet Method (String, String) |
Namespace: Sfs2X.WebSocketSharp.Net
public override void Set( 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 current WebHeaderCollection instance doesn't allow the header name. |