JSValueScopeType enumeration
Indicates the type of JSValueScope within the hierarchy of scopes.
C#
public enum JSValueScopeTypeValues
| name | value | description |
|---|---|---|
| NoContext | 0 | A limited scope without any JSRuntimeContext or JSModuleContext. Used by the Node API .NET native host to set up callbacks before the managed host is initialized. |
| Root | 1 | A parent scope shared by all (non-AOT) .NET modules loaded in the same process. It has a JSRuntimeContext but no JSModuleContext. |
| Module | 2 | A scope specific to each module. It inherits the JSRuntimeContext from the root scope, and has a unique JSModuleContext. |
| Callback | 3 | Callback scope within a module; inherits context from the module. |
| Handle | 4 | Handle scope within a callback; inherits context from the module. |
| Escapable | 5 | Escapable handle scope within a callback; inherits context from the module. |