StackTraceElement.FileName Property

Definition

Returns the name of the source file containing the execution point represented by this stack trace element.

public string? FileName { [Android.Runtime.Register("getFileName", "()Ljava/lang/String;", "")] get; }
[<get: Android.Runtime.Register("getFileName", "()Ljava/lang/String;", "")>]
member this.FileName : string

Property Value

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

Attributes

Remarks

Returns the name of the source file containing the execution point represented by this stack trace element. Generally, this corresponds to the SourceFile attribute of the relevant class file (as per The Java Virtual Machine Specification, Section 4.7.7). In some systems, the name may refer to some source code unit other than a file, such as an entry in source repository.

Java documentation for java.lang.StackTraceElement.getFileName().

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