Skip to main content

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​

InputTypeRequiredDefaultWhat it is
SessionStringNodotnetName of the .NET session, from Open assembly.
TypeStringNoFull type name for a static method.
Object nameStringNoAn object made with Create object.
MethodStringYesMethod name.
ArgumentsListNoArguments in order.
Argument typesListNoThe 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 argumentsDictionaryNoArguments by their parameter names, after the ones in order.
Timeout (seconds)NumberNo300Maximum run time; the session is closed when it runs out.

Outputs​

OutputTypeWhat it is
resultAnyWhat the method returned.
outputStringAnything it wrote to the console.