Executes the specified script.
Namespace: Spotfire.Dxp.Application.Scripting
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 51.0.16121.3915 (51.0.16121.3915)
Syntax
C#
public void ExecuteScript( string scriptCode, ScriptLanguage scriptLanguage, IDictionary<string, Object> scriptArguments, Stream outputStream, bool executeInTransaction )
Parameters
- scriptCode
- Type: SystemString
The IronPython script to execute. - scriptLanguage
- Type: Spotfire.Dxp.Application.ScriptingScriptLanguage
The script language. Use one of the IronPython constants defined in ScriptLanguage. - scriptArguments
- Type: System.Collections.GenericIDictionaryString, Object
A mapping of script variable names to values, or null. Pass to execute the script with an empty scope. - outputStream
- Type: System.IOStream
The stream to which the output of the script is written, or null. Pass null to discard the output. - executeInTransaction
- Type: SystemBoolean
If set to true the script is executed in a transaction on the document.
Exceptions
Exception | Condition |
---|---|
NotSupportedException | If script support is not available in the current distribution. |
Remarks
Version Information
Supported in: 11.4, 11.3, 11.2, 11.1, 11.0, 10.10, 7.11
See Also