StatusCodePagesFeature.Enabled 属性

定义

启用或禁用状态代码页。 默认值为 true。 将此设置为 false,以防止 StatusCodePagesMiddleware 在处理错误状态代码时创建响应正文。

public:
 property bool Enabled { bool get(); void set(bool value); };
public bool Enabled { get; set; }
member this.Enabled : bool with get, set
Public Property Enabled As Boolean

属性值

实现

适用于