DeveloperExceptionPageOptions Class¶
Options for the Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware
.
- Namespace
Microsoft.AspNetCore.Builder
- Assemblies
- Microsoft.AspNetCore.Diagnostics
Syntax¶
public class DeveloperExceptionPageOptions
-
class
Microsoft.AspNetCore.Builder.
DeveloperExceptionPageOptions
Constructors¶
-
DeveloperExceptionPageOptions
()¶ Create an instance with the default options settings.
public DeveloperExceptionPageOptions()
-
Properties¶
-
Microsoft.AspNetCore.Builder.DeveloperExceptionPageOptions.
FileProvider
¶ Provides files containing source code used to display contextual information of an exception.
Return type: Microsoft.Extensions.FileProviders.IFileProvider public IFileProvider FileProvider { get; set; }
-
Microsoft.AspNetCore.Builder.DeveloperExceptionPageOptions.
SourceCodeLineCount
¶ Determines how many lines of code to include before and after the line of code present in an exception’s stack frame. Only applies when symbols are available and source code referenced by the exception stack trace is present on the server.
Return type: System.Int32 public int SourceCodeLineCount { get; set; }
-