Cookie Constructor (String, String)
Initializes a new instance of the Cookie class with the specified name and value.
Assembly: System.Net (in System.Net.dll)
- Type: System.String
The name of the Cookie. The name parameter cannot contain the following characters: equal sign (=), semicolon (;), comma (,), newline (\n), return (\r), tab (\t), and space character. The dollar sign character ($) cannot be the first character.
name is Nothing or an empty string ("").
name contains an unauthorized character. Using one of the following characters will cause an exception:
value is Nothing or contains a semicolon (;) or a comma (,) that is not contained in escaped double quotes.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.