次の方法で共有


StackTraceElement.MethodName Property

Definition

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

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

Property Value

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

Attributes

Remarks

Returns the name of the method containing the execution point represented by this stack trace element. If the execution point is contained in an instance or class initializer, this method will return the appropriate special method name, <init> or <clinit>, as per Section 3.9 of The Java Virtual Machine Specification.

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

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