This topic has not yet been rated - Rate this topic

StackTrace Constructor

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.

  Name Description
Public method StackTrace() Initializes a new instance of the StackTrace class from the caller's frame.
Public method StackTrace(Boolean) Initializes a new instance of the StackTrace class from the caller's frame, optionally capturing source information.
Public method StackTrace(Exception) Initializes a new instance of the StackTrace class using the provided exception object.
Public method StackTrace(Int32) 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) Initializes a new instance of the StackTrace class, using the provided exception object and optionally capturing source information.
Public method StackTrace(Exception, Int32) Initializes a new instance of the StackTrace class using the provided exception object and skipping the specified number of frames.
Public method StackTrace(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.
Public method StackTrace(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.
Public method StackTrace(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.
Top
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.