ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8
V8Runtime Class
V8Runtime Methods
CreateScriptEngine Method
CreateScriptEngine Method
CreateScriptEngine(String) Method
CreateScriptEngine(V8ScriptEngineFlags) Method
CreateScriptEngine(String, V8ScriptEngineFlags) Method
CreateScriptEngine(V8ScriptEngineFlags, Int32) Method
CreateScriptEngine(String, V8ScriptEngineFlags, Int32) Method

# V8RuntimeCreateScriptEngine(String, V8ScriptEngineFlags) Method

Creates a new V8 script engine instance with the specified name and options.
Namespace: Microsoft.ClearScript.V8
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public V8ScriptEngine CreateScriptEngine(
    	string engineName,
    	V8ScriptEngineFlags flags
    )

    Public Function CreateScriptEngine (
    	engineName As String,
    	flags As V8ScriptEngineFlags
    ) As V8ScriptEngine

    public:
    V8ScriptEngine^ CreateScriptEngine(
    	String^ engineName,
    	V8ScriptEngineFlags flags
    )

    member CreateScriptEngine :
            engineName : string *
            flags : V8ScriptEngineFlags -> V8ScriptEngine

#### Parameters

engineName String
  A name to associate with the instance. Currently, this name is used only as a label in presentation contexts such as debugger user interfaces.
flags V8ScriptEngineFlags
  A value that selects options for the operation.

#### Return Value

V8ScriptEngine
A new V8 script engine instance.
Remarks

The new script engine instance shares the V8 runtime with other instances created by this method and any of its overloads.

V8 supports one script debugger per runtime. If script debugging has been enabled in the current runtime, additional script engine instances cannot disable it or change its TCP port, nor can they enable script debugging on a different port.

See Also

#### Reference

V8Runtime Class
CreateScriptEngine Overload
Microsoft.ClearScript.V8 Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft