StackTrace Constructor

StackTrace Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the StackTrace class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method StackTrace() Initializes a new instance of the StackTrace class from the caller's frame.
Public method StackTrace(Boolean) Security Critical. Initializes a new instance of the StackTrace class from the caller's frame, and optionally captures source information.
Public method StackTrace(Exception) Initializes a new instance of the StackTrace class by using the specified exception object.
Public method StackTrace(Int32) Security Critical. Initializes a new instance of the StackTrace class from the caller's frame, skipping the specified number of frames.
Public method StackTrace(StackFrame) Initializes a new instance of the StackTrace class that contains a single frame.
Public method StackTrace(Exception, Boolean) Security Critical. Initializes a new instance of the StackTrace class by using the specified exception object, and optionally captures source information.
Public method StackTrace(Exception, Int32) Security Critical. Initializes a new instance of the StackTrace class by using the specified exception object and skipping the specified number of frames.
Public method StackTrace(Int32, Boolean) Security Critical. Initializes a new instance of the StackTrace class from the caller's frame, skipping the specified number of frames and optionally capturing source information.
Public method StackTrace(Thread, Boolean) Obsolete. Security Critical. Initializes a new instance of the StackTrace class for a specific thread, and optionally captures source information.
Public method StackTrace(Exception, Int32, Boolean) Security Critical. Initializes a new instance of the StackTrace class by using the specified exception object and skipping the specified number of frames, and optionally captures source information.
Top

Show:
© 2017 Microsoft