Gets or sets the discard flag set by the server.
member Discard : bool with get, set
Type: System.Booleantrue if the client is to discard the Cookie at the end of the current session; otherwise, false. The default is false.
When true, this property instructs the client application not to save the Cookie on the user's hard disk when a session ends.
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.
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