Call method in session
Call a static method of a type, or a method of an object created in the session, with typed and named arguments (G4).
Command in the .NET, Java and COM toolkit · id ooa.dotnet/call_method · 8 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Session | String | No | dotnet | Name of the .NET session, from Open assembly. |
| Type | String | No | Full type name for a static method. | |
| Object name | String | No | An object made with Create object. | |
| Method | String | Yes | Method name. | |
| Arguments | List | No | Arguments in order. | |
| Argument types | List | No | The type of each argument, in order: auto, text, int, long, double, decimal, bool, byte, datetime, bytes (base64), text_list, number_list, list or dictionary. | |
| Named arguments | Dictionary | No | Arguments by their parameter names, after the ones in order. | |
| Timeout (seconds) | Number | No | 300 | Maximum run time; the session is closed when it runs out. |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | Any | What the method returned. |
| output | String | Anything it wrote to the console. |