Class IisSiteHstsSettings
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents the HTTP strict transport security (HSTS) settings for an IIS site. This applies to Windows 10, Windows Server 2019 and above.
public class IisSiteHstsSettings : BypassSection
- Inheritance
-
IisSiteHstsSettings
- Inherited Members
Constructors
IisSiteHstsSettings()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.IisSiteHstsSettings class.
public IisSiteHstsSettings()
Properties
Enabled
Gets or sets whether HSTS is enabled for the site.
public BooleanOption Enabled { get; set; }
Property Value
IncludeSubdomains
Gets or sets whether to include subdomains.
public BooleanOption IncludeSubdomains { get; set; }
Property Value
MaximumAge
Gets or sets the maximum age.
public uint MaximumAge { get; set; }
Property Value
Preload
Gets or sets whether to include the preload directive.
public BooleanOption Preload { get; set; }
Property Value
RedirectHttpToHttps
Gets or sets whether to redirect HTTP to HTTPS.
public BooleanOption RedirectHttpToHttps { get; set; }
Property Value
Methods
ToString()
Returns the HSTS settings as a human readable string.
public override string ToString()
Returns
- string
The HSTS settings as a human readable string.