Click or drag to resize

V8ScriptEngine Methods

The V8ScriptEngine type exposes the following members.

Methods
 NameDescription
Public methodAddCOMObject(String, Guid) Creates a COM/ActiveX object and exposes it to script code. The registered class is specified by class identifier (CLSID).
(Inherited from ScriptEngine)
Public methodAddCOMObject(String, String) Creates a COM/ActiveX object and exposes it to script code. The registered class is specified by programmatic identifier (ProgID).
(Inherited from ScriptEngine)
Public methodAddCOMObject(String, HostItemFlags, Guid) Creates a COM/ActiveX object and exposes it to script code with the specified options. The registered class is specified by class identifier (CLSID).
(Inherited from ScriptEngine)
Public methodAddCOMObject(String, HostItemFlags, String) Creates a COM/ActiveX object and exposes it to script code with the specified options. The registered class is specified by programmatic identifier (ProgID).
(Inherited from ScriptEngine)
Public methodAddCOMObject(String, Guid, String) Creates a COM/ActiveX object on the specified server and exposes it to script code. The registered class is specified by class identifier (CLSID).
(Inherited from ScriptEngine)
Public methodAddCOMObject(String, String, String) Creates a COM/ActiveX object on the specified server and exposes it to script code. The registered class is specified by programmatic identifier (ProgID).
(Inherited from ScriptEngine)
Public methodAddCOMObject(String, HostItemFlags, Guid, String) Creates a COM/ActiveX object on the specified server and exposes it to script code with the specified options. The registered class is specified by class identifier (CLSID).
(Inherited from ScriptEngine)
Public methodAddCOMObject(String, HostItemFlags, String, String) Creates a COM/ActiveX object on the specified server and exposes it to script code with the specified options. The registered class is specified by programmatic identifier (ProgID).
(Inherited from ScriptEngine)
Public methodAddCOMType(String, Guid) Imports a COM/ActiveX type and exposes it to script code. The registered class is specified by class identifier (CLSID).
(Inherited from ScriptEngine)
Public methodAddCOMType(String, String) Imports a COM/ActiveX type and exposes it to script code. The registered class is specified by programmatic identifier (ProgID).
(Inherited from ScriptEngine)
Public methodAddCOMType(String, HostItemFlags, Guid) Imports a COM/ActiveX type and exposes it to script code with the specified options. The registered class is specified by class identifier (CLSID).
(Inherited from ScriptEngine)
Public methodAddCOMType(String, HostItemFlags, String) Imports a COM/ActiveX type and exposes it to script code with the specified options. The registered class is specified by programmatic identifier (ProgID).
(Inherited from ScriptEngine)
Public methodAddCOMType(String, Guid, String) Imports a COM/ActiveX type from the specified server and exposes it to script code. The registered class is specified by class identifier (CLSID).
(Inherited from ScriptEngine)
Public methodAddCOMType(String, String, String) Imports a COM/ActiveX type from the specified server and exposes it to script code. The registered class is specified by programmatic identifier (ProgID).
(Inherited from ScriptEngine)
Public methodAddCOMType(String, HostItemFlags, Guid, String) Imports a COM/ActiveX type from the specified server and exposes it to script code with the specified options. The registered class is specified by class identifier (CLSID).
(Inherited from ScriptEngine)
Public methodAddCOMType(String, HostItemFlags, String, String) Imports a COM/ActiveX type from the specified server and exposes it to script code with the specified options. The registered class is specified by programmatic identifier (ProgID).
(Inherited from ScriptEngine)
Public methodAddHostObject(String, Object) Exposes a host object to script code.
(Inherited from ScriptEngine)
Public methodAddHostObject(String, HostItemFlags, Object) Exposes a host object to script code with the specified options.
(Inherited from ScriptEngine)
Public methodAddHostType(Type) Exposes a host type to script code with a default name.
(Inherited from ScriptEngine)
Public methodAddHostType(HostItemFlags, Type) Exposes a host type to script code with a default name and the specified options.
(Inherited from ScriptEngine)
Public methodAddHostType(String, Type) Exposes a host type to script code.
(Inherited from ScriptEngine)
Public methodAddHostType(String, HostItemFlags, Type) Exposes a host type to script code with the specified options.
(Inherited from ScriptEngine)
Public methodAddHostType(String, String, Type) Exposes a host type to script code. The type is specified by name.
(Inherited from ScriptEngine)
Public methodAddHostType(String, HostItemFlags, String, Type) Exposes a host type to script code with the specified options. The type is specified by name.
(Inherited from ScriptEngine)
Public methodAddHostType(String, String, String, Type) Exposes a host type to script code. The type is specified by type name and assembly name.
(Inherited from ScriptEngine)
Public methodAddHostType(String, HostItemFlags, String, String, Type) Exposes a host type to script code with the specified options. The type is specified by type name and assembly name.
(Inherited from ScriptEngine)
Public methodAddHostTypes Exposes host types to script code.
(Inherited from ScriptEngine)
Public methodAddRestrictedHostObjectT(String, T) Exposes a host object to script code with the specified type restriction.
(Inherited from ScriptEngine)
Public methodAddRestrictedHostObjectT(String, HostItemFlags, T) Exposes a host object to script code with the specified type restriction and options.
(Inherited from ScriptEngine)
Public methodBeginCpuProfile(String) Begins collecting a new CPU profile.
Public methodBeginCpuProfile(String, V8CpuProfileFlags) Begins collecting a new CPU profile with the specified options.
Public methodCancelAwaitDebugger Resumes script execution if the script engine is waiting for a debugger connection.
Public methodCancelInterrupt Cancels any pending request to interrupt script execution.
Public methodCollectCpuProfileSample Collects a sample in all CPU profiles active in the V8 runtime.
Public methodCollectGarbage Performs garbage collection.
(Overrides ScriptEngineCollectGarbage(Boolean))
Public methodCompile(String) Creates a compiled script.
Public methodCompile(DocumentInfo, String) Creates a compiled script with the specified document meta-information.
Public methodCompile(String, String) Creates a compiled script with an associated document name.
Public methodCompile(String, V8CacheKind, Byte) Creates a compiled script, generating cache data for accelerated recompilation.
Public methodCompile(DocumentInfo, String, V8CacheKind, Byte) Creates a compiled script with the specified document meta-information, generating cache data for accelerated recompilation.
Public methodCompile(String, V8CacheKind, Byte, Boolean) Creates a compiled script, consuming previously generated cache data.
Public methodCompile(String, V8CacheKind, Byte, V8CacheResult) Creates a compiled script, consuming previously generated cache data and updating it if necessary.
Public methodCompile(String, String, V8CacheKind, Byte) Creates a compiled script with an associated document name, generating cache data for accelerated recompilation.
Public methodCompile(DocumentInfo, String, V8CacheKind, Byte, Boolean) Creates a compiled script with an associated document name, consuming previously generated cache data.
Public methodCompile(DocumentInfo, String, V8CacheKind, Byte, V8CacheResult) Creates a compiled script with the specified document meta-information, consuming previously generated cache data and updating it if necessary.
Public methodCompile(String, String, V8CacheKind, Byte, Boolean) Creates a compiled script with an associated document name, consuming previously generated cache data.
Public methodCompile(String, String, V8CacheKind, Byte, V8CacheResult) Creates a compiled script with an associated document name, consuming previously generated cache data and updating it if necessary.
Public methodCompileDocument(String) Loads and compiles a script document.
Public methodCompileDocument(String, DocumentCategory) Loads and compiles a document with the specified category.
Public methodCompileDocument(String, DocumentCategory, DocumentContextCallback) Loads and compiles a document with the specified category and context callback.
Public methodCompileDocument(String, V8CacheKind, Byte) Loads and compiles a script document, generating cache data for accelerated recompilation.
Public methodCompileDocument(String, DocumentCategory, V8CacheKind, Byte) Loads and compiles a document with the specified category, generating cache data for accelerated recompilation.
Public methodCompileDocument(String, V8CacheKind, Byte, Boolean) Loads and compiles a script document, consuming previously generated cache data.
Public methodCompileDocument(String, V8CacheKind, Byte, V8CacheResult) Loads and compiles a script document, consuming previously generated cache data and updating it if necessary.
Public methodCompileDocument(String, DocumentCategory, DocumentContextCallback, V8CacheKind, Byte) Loads and compiles a document with the specified category and context callback, generating cache data for accelerated recompilation.
Public methodCompileDocument(String, DocumentCategory, V8CacheKind, Byte, Boolean) Loads and compiles a document with the specified category, consuming previously generated cache data.
Public methodCompileDocument(String, DocumentCategory, V8CacheKind, Byte, V8CacheResult) Loads and compiles a document with the specified category, consuming previously generated cache data and updating it if necessary.
Public methodCompileDocument(String, DocumentCategory, DocumentContextCallback, V8CacheKind, Byte, Boolean) Loads and compiles a document with the specified category and context callback, consuming previously generated cache data.
Public methodCompileDocument(String, DocumentCategory, DocumentContextCallback, V8CacheKind, Byte, V8CacheResult) Loads and compiles a document with the specified category and context callback, consuming previously generated cache data and updating it if necessary.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from ScriptEngine)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the script engine and optionally releases the managed resources.
(Overrides ScriptEngineDispose(Boolean))
Public methodEndCpuProfile Completes and returns a CPU profile.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodEvaluate(String) Evaluates script code.
(Inherited from ScriptEngine)
Public methodEvaluate(V8Script) Evaluates a compiled script.
Public methodEvaluate(DocumentInfo, String) Evaluates script code with the specified document meta-information.
(Inherited from ScriptEngine)
Public methodEvaluate(String, String) Evaluates script code with an associated document name.
(Inherited from ScriptEngine)
Public methodEvaluate(String, Boolean, String) Evaluates script code with an associated document name, optionally discarding the document after execution.
(Inherited from ScriptEngine)
Public methodEvaluateDocument(String) Loads and evaluates a script document.
(Inherited from ScriptEngine)
Public methodEvaluateDocument(String, DocumentCategory) Loads and evaluates a document with the specified category.
(Inherited from ScriptEngine)
Public methodEvaluateDocument(String, DocumentCategory, DocumentContextCallback) Loads and evaluates a document with the specified category and context callback.
(Inherited from ScriptEngine)
Public methodExecute(String) Executes script code.
(Inherited from ScriptEngine)
Public methodExecute(V8Script) Executes a compiled script.
Public methodExecute(DocumentInfo, String) Executes script code with the specified document meta-information.
(Inherited from ScriptEngine)
Public methodExecute(String, String) Executes script code with an associated document name.
(Inherited from ScriptEngine)
Public methodExecute(String, Boolean, String) Executes script code with an associated document name, optionally discarding the document after execution.
(Inherited from ScriptEngine)
Public methodExecuteCommand Executes script code as a command.
(Overrides ScriptEngineExecuteCommand(String))
Public methodExecuteDocument(String) Loads and executes a script document.
(Inherited from ScriptEngine)
Public methodExecuteDocument(String, DocumentCategory) Loads and executes a document with the specified category.
(Inherited from ScriptEngine)
Public methodExecuteDocument(String, DocumentCategory, DocumentContextCallback) Loads and executes a document with the specified category and context callback.
(Inherited from ScriptEngine)
Protected methodFinalize Releases unmanaged resources and performs other cleanup operations before the script engine is reclaimed by garbage collection.
(Inherited from ScriptEngine)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetRuntimeHeapInfo Returns memory usage information for the V8 runtime.
Public methodGetStackTrace Gets a string representation of the script call stack.
(Overrides ScriptEngineGetStackTrace)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInterrupt Interrupts script execution and causes the script engine to throw an exception.
(Overrides ScriptEngineInterrupt)
Public methodInvoke Invokes a global function or procedure.
(Inherited from ScriptEngine)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWriteRuntimeHeapSnapshot Writes a snapshot of the V8 runtime's heap to the given stream.
Top
See Also