Click or drag to resize
StackTrace Class
Represents a stack trace, which is an ordered collection of one or more stack frames.
Inheritance Hierarchy
SystemObject
  System.DiagnosticsStackTrace

Namespace: System.Diagnostics
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public class StackTrace

The StackTrace type exposes the following members.

Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetFrame
Gets the specified stack frame.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Builds a readable representation of the stack trace.
(Overrides ObjectToString.)
Top
Fields
  NameDescription
Public fieldStatic memberMETHODS_TO_SKIP
Defines the default for the number of methods to omit from the stack trace. This field is constant.
Top
See Also