HstsOptions.MaxAge Property   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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, setPublic Property MaxAge As TimeSpanProperty Value
Remarks
Max-age is required; defaults to 30 days. See: https://tools.ietf.org/html/rfc6797#section-6.1.1