Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

StackTrace Constructor

 

Initializes a new instance of the StackTrace class.

Namespace:   System.Diagnostics
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodStackTrace()

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

System_CAPS_pubmethodStackTrace(Boolean)

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

System_CAPS_pubmethodStackTrace(Exception^)

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

System_CAPS_pubmethodStackTrace(Exception^, Boolean)

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

System_CAPS_pubmethodStackTrace(Exception^, Int32)

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

System_CAPS_pubmethodStackTrace(Exception^, Int32, Boolean)

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

System_CAPS_pubmethodStackTrace(Int32)

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

System_CAPS_pubmethodStackTrace(Int32, Boolean)

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

System_CAPS_pubmethodStackTrace(StackFrame^)

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

System_CAPS_pubmethodStackTrace(Thread^, Boolean)

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

Do not use this constructor overload.

Return to top
Show:
© 2017 Microsoft