StackTraceElement(String, String, String, Int32) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.