System.Diagnostics.StackTrace: Constructor Members

The constructors of System.Diagnostics.StackTrace are listed below. For a list of all members, see the StackTrace Members list.

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.