Export (0) Print
Expand All

Cookie.Value Property

Gets or sets the Value for the Cookie.

Namespace:  System.Net
Assembly:  System (in System.dll)

member Value : string with get, set

Property Value

Type: System.String
The Value for the Cookie.

The Value of a Cookie must not be a null reference (Nothing in Visual Basic). The following characters are reserved and cannot be used for this property: semicolon, comma.

The following example displays the properties of cookies returned in a response. For the complete example, see the Cookie class topic.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft