HstsOptions.MaxAge 屬性

定義

設定 Strict-Transport-Security 標頭的 max-age 參數。

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

屬性值

備註

需要最長存留期;預設為 30 天。 請參閱:https://tools.ietf.org/html/rfc6797#section-6.1.1

適用於