 | IJavaObjectInvokeTReturn(String) Method |
Invokes an instance method on the underlying JVM object with no arguments
and casts the result to TReturn.
Namespace: MASES.JCOBridge.C2JBridge.JVMInteropAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
SyntaxTReturn Invoke<TReturn>(
string methodName
)
Function Invoke(Of TReturn) (
methodName As String
) As TReturn
Parameters
- methodName String
- The name of the Java instance method to invoke.
Type Parameters
- TReturn
-
The expected return type. Supported types: IJavaObject or any
derived interface/class, .NET primitive types (Int32, Int64,
Boolean, etc.), Enum, and arrays of primitive types.
Return Value
TReturnThe return value of the method cast to
TReturn.
Exceptions
See Also