StackTrace Property

_Exception.StackTrace Property


Provides COM objects with version-independent access to the Exception.StackTrace property.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

string StackTrace { get; }

Property Value

Type: System.String

A string that describes the contents of the call stack, with the most recent method call appearing first.

This method is for access to managed classes from unmanaged code and should not be called from managed code.

The Exception.StackTrace property gets a string representation of the frames on the call stack at the time the current exception was thrown.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft