StackTrace Constructor (Exception^)

 

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

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

public:
StackTrace(
	Exception^ e
)

Parameters

e
Type: System::Exception^

The exception object from which to construct the stack trace.

Exception Condition
ArgumentNullException

The parameter e is null.

The StackTrace is created with the caller's current thread, and does not contain file name, line number, or column information.

The resulting stack trace describes the stack at the time of the exception.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: