Table of Contents

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

BooleanOption

IncludeSubdomains

Gets or sets whether to include subdomains.

public BooleanOption IncludeSubdomains { get; set; }

Property Value

BooleanOption

MaximumAge

Gets or sets the maximum age.

public uint MaximumAge { get; set; }

Property Value

uint

Preload

Gets or sets whether to include the preload directive.

public BooleanOption Preload { get; set; }

Property Value

BooleanOption

RedirectHttpToHttps

Gets or sets whether to redirect HTTP to HTTPS.

public BooleanOption RedirectHttpToHttps { get; set; }

Property Value

BooleanOption

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.