Share via


StatusCodePagesFeature.Enabled Property

Definition

Enables or disables status code pages. The default value is true. Set this to false to prevent the StatusCodePagesMiddleware from creating a response body while handling the error status code.

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

Property Value

Implements

Applies to