DllClassCallMethod
- Last UpdatedJul 18, 2023
- 1 minute read
Use this function to call a method of a .Net object, passing in the method name and any arguments required for the matching prototype of the method.
This function is a blocking function. It blocks the calling Cicode task until the operation is complete.
Note:This function is unable to call a static method as it requires an instance of the class to be created before a method can be called from it.
Syntax
VAR DllClassCallMethod(OBJECT object, STRING sMethod, VARARGS args)
object:
.Net object.
sMethod:
The name of the method
args
Args for functions.
Return Value
Var if successful, otherwise an error code is returned.
Related Functions
DllClassDispose, DllClassIsValid, DllClassSetProperty, DllClassCreate, DllClassGetProperty
Example
See DllClassCreate