Delen via


HstsOptions.MaxAge Property

Definition

Sets the max-age parameter of the Strict-Transport-Security header.

public:
 property TimeSpan MaxAge { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan MaxAge { get; set; }
member this.MaxAge : TimeSpan with get, set
Public Property MaxAge As TimeSpan

Property Value

Remarks

Max-age is required; defaults to 30 days. See: https://tools.ietf.org/html/rfc6797#section-6.1.1

Applies to