Discard Property

Cookie.Discard Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a values that indicates whether the client is to discard the Cookie at the end of the current session.

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

public bool Discard { get; set; }

Property Value

Type: System.Boolean
true if the client should discard the Cookie at the end of the session; otherwise, false. The default is false.

This property is set by the server to instruct the client application whether to discard the Cookie at the end of the session. If true, the client application should discard the Cookie at the end of the session. This means that the Cookie should not be saved to the hard disk of the client computer.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft