CookieHeaderValue.Expires Property
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)
Get
Set
'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.