ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8
V8ScriptEngine Class
V8ScriptEngine Constructor
V8ScriptEngine Constructor
V8ScriptEngine(String) Constructor
V8ScriptEngine(V8RuntimeConstraints) Constructor
V8ScriptEngine(V8ScriptEngineFlags) Constructor
V8ScriptEngine(String, V8RuntimeConstraints) Constructor
V8ScriptEngine(String, V8ScriptEngineFlags) Constructor
V8ScriptEngine(V8RuntimeConstraints, V8ScriptEngineFlags) Constructor
V8ScriptEngine(V8ScriptEngineFlags, Int32) Constructor
V8ScriptEngine(String, V8RuntimeConstraints, V8ScriptEngineFlags) Constructor
V8ScriptEngine(String, V8ScriptEngineFlags, Int32) Constructor
V8ScriptEngine(V8RuntimeConstraints, V8ScriptEngineFlags, Int32) Constructor
V8ScriptEngine(String, V8RuntimeConstraints, V8ScriptEngineFlags, Int32) Constructor

# V8ScriptEngine(V8RuntimeConstraints, V8ScriptEngineFlags, Int32) Constructor

Initializes a new V8 script engine instance with the specified resource constraints, options, and debug port.
Namespace: Microsoft.ClearScript.V8
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public V8ScriptEngine(
    	V8RuntimeConstraints constraints,
    	V8ScriptEngineFlags flags,
    	int debugPort
    )

    Public Sub New (
    	constraints As V8RuntimeConstraints,
    	flags As V8ScriptEngineFlags,
    	debugPort As Integer
    )

    public:
    V8ScriptEngine(
    	V8RuntimeConstraints^ constraints,
    	V8ScriptEngineFlags flags,
    	int debugPort
    )

    new :
            constraints : V8RuntimeConstraints *
            flags : V8ScriptEngineFlags *
            debugPort : int -> V8ScriptEngine

#### Parameters

constraints V8RuntimeConstraints
  Resource constraints for the V8 runtime (see remarks).
flags V8ScriptEngineFlags
  A value that selects options for the operation.
debugPort Int32
  A TCP port on which to listen for a debugger connection.

Remarks
A separate V8 runtime is created for the new script engine instance.
See Also

#### Reference

V8ScriptEngine Class
V8ScriptEngine Overload
Microsoft.ClearScript.V8 Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft