Megosztás a következőn keresztül:


Method.Invoke(Object, Object[]) Method

Definition

Invokes the underlying method represented by this Method object, on the specified object with the specified parameters.

[Android.Runtime.Register("invoke", "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;", "")]
public Java.Lang.Object? Invoke (Java.Lang.Object? obj, params Java.Lang.Object[]? args);
[<Android.Runtime.Register("invoke", "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;", "")>]
member this.Invoke : Java.Lang.Object * Java.Lang.Object[] -> Java.Lang.Object

Parameters

obj
Object

the object the underlying method is invoked from

args
Object[]

the arguments used for the method call

Returns

the result of dispatching the method represented by this object on obj with parameters args

Attributes

Remarks

Java documentation for java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object).

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