 | IJavaObjectInvokeWithSignatureTReturn(String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) Method |
Invokes an instance method on the underlying JVM object using an explicit JNI signature,
10 arguments, and casts the result to TReturn.
Namespace: MASES.JCOBridge.C2JBridge.JVMInteropAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
SyntaxTReturn InvokeWithSignature<TReturn>(
string methodName,
string signature,
Object arg0,
Object arg1,
Object arg2,
Object arg3,
Object arg4,
Object arg5,
Object arg6,
Object arg7,
Object arg8,
Object arg9
)
Function InvokeWithSignature(Of TReturn) (
methodName As String,
signature As String,
arg0 As Object,
arg1 As Object,
arg2 As Object,
arg3 As Object,
arg4 As Object,
arg5 As Object,
arg6 As Object,
arg7 As Object,
arg8 As Object,
arg9 As Object
) As TReturn
Parameters
- methodName String
- The name of the Java instance method to invoke.
- signature String
- The JNI method descriptor string that uniquely identifies the target method.
- arg0 Object
- The first argument to pass to the method.
- arg1 Object
- The second argument to pass to the method.
- arg2 Object
- The third argument to pass to the method.
- arg3 Object
- The fourth argument to pass to the method.
- arg4 Object
- The fifth argument to pass to the method.
- arg5 Object
- The sixth argument to pass to the method.
- arg6 Object
- The seventh argument to pass to the method.
- arg7 Object
- The eighth argument to pass to the method.
- arg8 Object
- The ninth argument to pass to the method.
- arg9 Object
- The tenth argument to pass to the method.
Type Parameters
- TReturn
-
The expected return type. Supported types: IJavaObject or any
derived interface/class, .NET primitive types, Enum, and arrays of primitive types.
Return Value
TReturnThe return value of the method cast to
TReturn.
Exceptions| Exception | Condition |
|---|
| MissingMethodException |
Thrown if the method identified by methodName and signature
is not found on the underlying Java class.
|
| InvalidCastException |
Thrown if the actual return value cannot be cast to TReturn.
|
See Also