This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge

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

Namespace: System.Net.Http.Headers
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Syntax

'Declaration
Public Property Expires As Nullable(Of DateTimeOffset)
'Usage
Dim instance As CookieHeaderValue 
Dim value As Nullable(Of DateTimeOffset)
value = instance.Expires
instance.Expires = value
public Nullable<DateTimeOffset> Expires { get; set; }
public:
property Nullable<DateTimeOffset> Expires {
    Nullable<DateTimeOffset> get ();
    void set (Nullable<DateTimeOffset> value);
member Expires : Nullable<DateTimeOffset> with get, set
function get Expires () : Nullable<DateTimeOffset>
function set Expires (value : Nullable<DateTimeOffset>)

Property Value

Type: System.Nullable<DateTimeOffset>
The time of day (on the client) at which the cookie expires.

See Also

Reference

CookieHeaderValue Class

System.Net.Http.Headers Namespace