Compartir a través de


StackTraceElement(String, String, String, Int32) Constructor

Definition

Creates a stack trace element representing the specified execution point.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V", "")]
public StackTraceElement (string? declaringClass, string? methodName, string? fileName, int lineNumber);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V", "")>]
new Java.Lang.StackTraceElement : string * string * string * int -> Java.Lang.StackTraceElement

Parameters

declaringClass
String

the fully qualified name of the class containing the execution point represented by the stack trace element

methodName
String

the name of the method containing the execution point represented by the stack trace element

fileName
String

the name of the file containing the execution point represented by the stack trace element, or null if this information is unavailable

lineNumber
Int32

the line number of the source line containing the execution point represented by this stack trace element, or a negative number if this information is unavailable. A value of -2 indicates that the method containing the execution point is a native method

Attributes

Exceptions

if cls or method is null.

Remarks

Creates a stack trace element representing the specified execution point.

Added in 1.5.

Java documentation for java.lang.StackTraceElement.StackTraceElement(java.lang.String, java.lang.String, java.lang.String, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to