Skip to main content

IApplication.ExecuteScriptCode(string,string,IScriptParams) Method

Namespace: NextDesign.Desktop

Description​

Executes the given script code.

Argument​

NameTypeDescription
codestringScript code
langstringScript language
- "cs": C#
- "py": Python
scriptParamsIScriptParamsScript parameters

Return value​

  • object

Exception​

NameException classDescription
Invalid argumentExtensionArgumentExceptionWhen a string not corresponding to the script language is specified
Script execution failedExtensionScriptExceptionWhen 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.