System.Diagnostics.StackTrace Members

The members of System.Diagnostics.StackTrace are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Diagnostics.StackTrace class from the caller's frame.

Initializes a new instance of the System.Diagnostics.StackTrace class from the caller's frame, optionally capturing source information.

Initializes a new instance of the System.Diagnostics.StackTrace class that contains a single frame.

Initializes a new instance of the System.Diagnostics.StackTrace class using the provided exception object.

Initializes a new instance of the System.Diagnostics.StackTrace class from the caller's frame, skipping the specified number of frames.

Initializes a new instance of the System.Diagnostics.StackTrace class, using the provided exception object and optionally capturing source information.

Initializes a new instance of the System.Diagnostics.StackTrace class using the provided exception object and skipping the specified number of frames.

Initializes a new instance of the System.Diagnostics.StackTrace class from the caller's frame, skipping the specified number of frames and optionally capturing source information.

Initializes a new instance of the System.Diagnostics.StackTrace class for a specific thread, optionally capturing source information.

Do not use this constructor overload.

Initializes a new instance of the System.Diagnostics.StackTrace class using the provided exception object, skipping the specified number of frames and optionally capturing source information.

Public Fields

const
METHODS_TO_SKIPint (0).

Defines the default for the number of methods to omit from the stack trace. This field is constant.

Public Properties

[read-only]
FrameCountint.

Gets the number of frames in the stack trace.

Public Methods

GetFrame(int) : StackFrame

Gets the specified stack frame.

GetFrames() : StackFrame[]

Returns a copy of all stack frames in the current stack trace.

override
ToString() : string

Builds a readable representation of the stack trace.