Value Property

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 null. The following characters are reserved and cannot be used for this property: semicolon, comma.

Legacy Code Example

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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft