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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Assembly | String | No | DLL path or assembly name; empty for types of the .NET Framework itself (System.Math). | |
| Type | String | Yes | Full type name, with its namespace. | |
| Member | String | Yes | Method or property name. | |
| Kind | String | No | method | Call a method, or read a property or field. |
| Arguments | List | No | Arguments in order; JSON numbers become Int32, Int64, Decimal or Double. | |
| Create instance | Boolean | No | false | Create an object of the type first and call the member on it. |
| Constructor arguments | List | No | Arguments for creating the object. | |
| Timeout (seconds) | Number | No | 120 | Stop the call after this many seconds. |
| Fail on error | Boolean | No | true | Fail the step when the code throws; when off, the error goes to 'error' and the run goes on. |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | Any | What the method or property returned. |
| output | String | Anything the method wrote to the console. |
| error | String | The exception, when fail on error is off. |