Invoke Method
Calls a public method of an object or a type and returns its return value. For an instance method TargetObject is set, for a static method TargetType.
⬅️INPUT
Parameter | Type | Required | Description |
|---|---|---|---|
|
| ❌ No | Object whose method is called (instance method). Either |
➡️OUTPUT
Parameter | Type | Description |
|---|---|---|
|
| Return value of the method. The type of the bound variable must be compatible with the method's return type; otherwise a validation error occurs. |
⬇️MISC
Parameter | Type | Default | Description |
|---|---|---|---|
|
| — | Name of the public method to call. If left empty, a validation error occurs. |
|
| — | Type whose static method is called. Either |
|
|
| If |
Usage
The canvas has the TargetType, TargetObject and MethodName fields.
The method is looked up by its name and the types of the given parameters. If no matching public method is found or more than one method matches, a validation error occurs.