Skip to content

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

exceptioncondition
JSValueScopeClosedExceptionThe scope has been closed.
JSInvalidThreadAccessExceptionThe scope is not valid on the current thread.

See Also

Released under the MIT license