Expires Property

Cookie.Expires Property

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

Gets or sets the expiration date and time for the Cookie.

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

'Declaration
Public Property Expires As DateTime

Property Value

Type: System.DateTime
The expiration date and time for the Cookie. The default is DateTime.MinValue.

If the Expires is set to the default, which is DateTime.MinValue, the cookie is considered a session cookie.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft