JSValueScope.EnvironmentHandle property
Gets the environment handle for the scope, or throws an exception if the scope is disposed or access from the current thread is invalid.
C#
public napi_env EnvironmentHandle { get; }
Exceptions
exception | condition |
---|---|
JSValueScopeClosedException | The scope has been closed. |
JSInvalidThreadAccessException | The scope is not valid on the current thread. |
See Also
- struct napi_env
- class JSValueScope
- namespace Microsoft.JavaScript.NodeApi