Share via


ExceptionHandlerOptions.CreateScopeForErrors Property

Definition

Gets or sets whether the handler needs to create a separate IServiceProvider scope and replace it on RequestServices when re-executing the request to handle an error.

public bool CreateScopeForErrors { get; set; }
member this.CreateScopeForErrors : bool with get, set
Public Property CreateScopeForErrors As Boolean

Property Value

Remarks

The default value is false.

Applies to