你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
StaticWebsiteProperties.ErrorDocument404Path 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个字符串,该字符串表示在发出 404 时应显示的错误文档的路径, (意思是,当浏览器请求不存在的页面时,该错误文档应显示该路径。)
public string ErrorDocument404Path { get; set; }
member this.ErrorDocument404Path : string with get, set
Public Property ErrorDocument404Path As String
属性值
示例
path/to/error/404.html