Android Guides | Samples

Java.Lang.StackTraceElement Class

A representation of a single stack frame.

See Also: StackTraceElement

Syntax

[Android.Runtime.Register("java/lang/StackTraceElement", DoNotGenerateAcw=true)]
public sealed class StackTraceElement : Object, ISerializable, IDisposable

Remarks

A representation of a single stack frame. Arrays of StackTraceElement are stored in Throwable objects to represent the whole state of the call stack at the time a Throwable gets thrown.

See Also

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Java.Lang.StackTraceElement are listed below.

See Also: Object

Public Constructors

Constructs a new StackTraceElement for a specified execution point.

Public Properties

[read-only]
ClassNameString. Returns the fully qualified name of the class belonging to this StackTraceElement.
[read-only]
FileNameString. Returns the name of the Java source file containing class belonging to this StackTraceElement.
[read-only]
IsNativeMethodBoolean. Indicates if the method name returned by StackTraceElement.MethodName is implemented as a native method.
[read-only]
LineNumberInt32. Returns the line number in the source for the class belonging to this StackTraceElement.
[read-only]
MethodNameString. Returns the name of the method belonging to this StackTraceElement.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.