Share via


CookieHeaderValue.MaxAge Property

Gets or sets the maximum age permitted for a resource.

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

Syntax

'Declaration
Public Property MaxAge As Nullable(Of TimeSpan)
    Get 
    Set
'Usage
Dim instance As CookieHeaderValue 
Dim value As Nullable(Of TimeSpan)

value = instance.MaxAge

instance.MaxAge = value
public Nullable<TimeSpan> MaxAge { get; set; }
public:
property Nullable<TimeSpan> MaxAge {
    Nullable<TimeSpan> get ();
    void set (Nullable<TimeSpan> value);
}
member MaxAge : Nullable<TimeSpan> with get, set
function get MaxAge () : Nullable<TimeSpan>
function set MaxAge (value : Nullable<TimeSpan>)

Property Value

Type: System.Nullable<TimeSpan>
The maximum age permitted for a resource.

See Also

Reference

CookieHeaderValue Class

System.Net.Http.Headers Namespace