StackFrame Class

Detailed exception stack information used to generate a view

Namespace
Microsoft.AspNetCore.Diagnostics.Views
Assemblies
  • Microsoft.AspNetCore.Diagnostics

Syntax

public class StackFrame
class Microsoft.AspNetCore.Diagnostics.Views.StackFrame

Properties

Microsoft.AspNetCore.Diagnostics.Views.StackFrame.ContextCode

Line(s) of code responsible for the error.

Return type:System.Collections.Generic.IEnumerable<System.String>
public IEnumerable<string> ContextCode { get; set; }
Microsoft.AspNetCore.Diagnostics.Views.StackFrame.ErrorDetails

Specific error details for this stack frame.

Return type:System.String
public string ErrorDetails { get; set; }
Microsoft.AspNetCore.Diagnostics.Views.StackFrame.File

File containing the instruction

Return type:System.String
public string File { get; set; }
Microsoft.AspNetCore.Diagnostics.Views.StackFrame.Function

Function containing instruction

Return type:System.String
public string Function { get; set; }
Microsoft.AspNetCore.Diagnostics.Views.StackFrame.Line

The line number of the instruction

Return type:System.Int32
public int Line { get; set; }
Microsoft.AspNetCore.Diagnostics.Views.StackFrame.PostContextCode

Lines of code after the actual error line(s).

Return type:System.Collections.Generic.IEnumerable<System.String>
public IEnumerable<string> PostContextCode { get; set; }
Microsoft.AspNetCore.Diagnostics.Views.StackFrame.PreContextCode

Lines of code before the actual error line(s).

Return type:System.Collections.Generic.IEnumerable<System.String>
public IEnumerable<string> PreContextCode { get; set; }
Microsoft.AspNetCore.Diagnostics.Views.StackFrame.PreContextLine

The line preceeding the frame line

Return type:System.Int32
public int PreContextLine { get; set; }