ClearScript
Wisej.Ext.ClearScript.ClearScript
Last updated
Wisej.Ext.ClearScript.ClearScript
Last updated
Namespace: Wisej.Ext.ClearScript
Assembly: Wisej.Ext.ClearScript (3.2.0.0)
Creates and manages instances of the ClearScript scripting engines. The documentation on how to use the scripting engine is available here: R_Project_Reference.
ClearScript Windows engines (VBScript and JScript) are thread-bound. Once the engine has been created it must always run within the thread that created it. When Create is called passing VBScript or JScript, it creates the new scripting engine on a new dedicated thread and marshals all calls to the thread the engine is bound to. When Create is called passing V8 if creates the new scripting engine without a dedicated thread since the VB engine can process requests from any thread.
Creates a new instance of the specified type .
Parameter | Type | Description |
---|---|---|
Returns: ScriptEngine. The requested ScriptEngine implementation.
type
The EngineType to create.
name
A name to associate with the instance. Currently this name is used only as a label in presentation contexts such as debugger user interfaces.
v8constraints
An optional instance of V8RuntimeConstraints used to initialize the V8 script engine.
v8flags
An optional combination of V8ScriptEngineFlags flags used to initialize the V8 script engine.
windowsflags
An optional combination of WindowsScriptEngineFlags flags used to initialize the JScript or VBScript engines.