다음을 통해 공유


Class.GetMethod(String, Class[]) Method

Definition

Returns a Method object that reflects the specified public member method of the class or interface represented by this Class object.

[Android.Runtime.Register("getMethod", "(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;", "")]
public Java.Lang.Reflect.Method GetMethod (string name, params Java.Lang.Class[]? parameterTypes);
[<Android.Runtime.Register("getMethod", "(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;", "")>]
member this.GetMethod : string * Java.Lang.Class[] -> Java.Lang.Reflect.Method

Parameters

name
String

the name of the method

parameterTypes
Class[]

the list of parameters

Returns

the Method object that matches the specified name and parameterTypes

Attributes

Remarks

Java documentation for java.lang.Class.getMethod(java.lang.String, java.lang.Class).

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