IApplication.ExecuteScriptCode(string,string,IScriptParams) Method
Namespace: NextDesign.Desktop
Description
Executes the given script code.
Argument
| Name | Type | Description |
|---|---|---|
| code | string | Script code |
| lang | string | Script language - "cs": C# - "py": Python |
| scriptParams | IScriptParams | Script parameters |
Return value
- object
Exception
| Name | Exception class | Description |
|---|---|---|
| Invalid argument | ExtensionArgumentException | When a string not corresponding to the script language is specified |
| Script execution failed | ExtensionScriptException | When script execution fails (You can access the exception that caused the failure using InnerException) |
Annotation
The script's return value is the result object of the script's return statement.
If the script does not have a return statement, it returns null.