StackTrace Constructor
.NET Framework 4.5
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 | |
|---|---|---|
|
StackTrace() | Initializes a new instance of the StackTrace class from the caller's frame. |
|
StackTrace(Boolean) | Initializes a new instance of the StackTrace class from the caller's frame, optionally capturing source information. |
|
StackTrace(Exception) | Initializes a new instance of the StackTrace class using the provided exception object. |
|
StackTrace(Int32) | Initializes a new instance of the StackTrace class from the caller's frame, skipping the specified number of frames. |
|
StackTrace(StackFrame) | Initializes a new instance of the StackTrace class that contains a single frame. |
|
StackTrace(Exception, Boolean) | Initializes a new instance of the StackTrace class, using the provided exception object and optionally capturing source information. |
|
StackTrace(Exception, Int32) | Initializes a new instance of the StackTrace class using the provided exception object and skipping the specified number of frames. |
|
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. |
|
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. |
|
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. |