Skip to main content

Call .NET method

Call a static method or property of a .NET type, or create an object and call one of its methods (Windows).

Command in the .NET, Java and COM toolkit · id ooa.dotnet/call_dotnet_method · 9 inputs (2 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
AssemblyStringNoDLL path or assembly name; empty for types of the .NET Framework itself (System.Math).
TypeStringYesFull type name, with its namespace.
MemberStringYesMethod or property name.
KindStringNomethodCall a method, or read a property or field.
ArgumentsListNoArguments in order; JSON numbers become Int32, Int64, Decimal or Double.
Create instanceBooleanNofalseCreate an object of the type first and call the member on it.
Constructor argumentsListNoArguments for creating the object.
Timeout (seconds)NumberNo120Stop the call after this many seconds.
Fail on errorBooleanNotrueFail the step when the code throws; when off, the error goes to 'error' and the run goes on.

Outputs​

OutputTypeWhat it is
resultAnyWhat the method or property returned.
outputStringAnything the method wrote to the console.
errorStringThe exception, when fail on error is off.