Executes the specified script.
Namespace: Spotfire.Dxp.Application.Scripting
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 30.0.11525.4184 (30.0.11525.4184)
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
See Also