Class StaticWebsiteProperties
- Namespace
- Microsoft.WindowsAzure.Storage.Shared.Protocol
- Assembly
- Microsoft.WindowsAzure.Storage.dll
Class representing the service properties pertaining to StaticWebsites
public sealed class StaticWebsiteProperties
- Inheritance
-
StaticWebsiteProperties
- Inherited Members
Constructors
StaticWebsiteProperties()
Initializes a new instance of the StaticWebsiteProperties class.
public StaticWebsiteProperties()
Remarks
"Enabled" defaults to false.
Properties
Enabled
True if static websites should be enabled on the blob service for the corresponding Storage Account.
public bool Enabled { get; set; }
Property Value
ErrorDocument404Path
Gets or sets a string representing the path to the error document that should be shown when a 404 is issued (meaning, when a browser requests a page that does not exist.)
public string ErrorDocument404Path { get; set; }
Property Value
Examples
path/to/error/404.html
IndexDocument
Gets or sets a string representing the name of the index document in each directory.
public string IndexDocument { get; set; }
Property Value
Remarks
This is commonly "index.html".