Name
StackTrace
Synopsis
A stack trace is an ordered list of StackFrame
objects. Call the constructor to create a stack trace that starts
with a StackFrame
corresponding to the current
method. The optional boolean argument fNeedFileInfo
indicates that the stack trace should include the filename as well as the line and column number. (The
program must have been compiled with /debug
to
get this information.)
When one method calls another, a new stack frame is created and FrameCount
is incremented. To get a specific StackFrame
, use GetFrame()
.
The shared constant METHODS_TO_SKIP
returns the
number of methods skipped at the beginning of the StackTrace
.
Public Class StackTrace ' Public Constructors Public Sub New() Public Sub New( ByVal fNeedFileInfo As Boolean) Public Sub New( ByVal e As Exception) Public Sub New(ByVal e As Exception, ByVal fNeedFileInfo As Boolean) Public Sub New(ByVal e As Exception, ByVal skipFrames As Integer) Public Sub New(ByVal e As Exception, ByVal skipFrames As Integer, ByVal fNeedFileInfo As Boolean) Public Sub New( ByVal skipFrames As Integer) Public Sub New(ByVal skipFrames As Integer, ByVal fNeedFileInfo As Boolean) Public Sub New( ByVal frame As StackFrame) Public Sub New( ByVal targetThread As System.Threading.Thread, ByVal needFileInfo As Boolean) ' Public Shared Fields Public const METHODS_TO_SKIP As Integer // =0 ' Public Instance Properties Overridable Public ReadOnly Property FrameCount As Integer ' Public Instance Methods Overridable Public Function ...
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.