JSValue constructor (1 of 3)
Creates an empty instance of JSValue
, which implicitly converts to Undefined
when used in any scope.
C#
public JSValue()
See Also
- struct JSValue
- namespace Microsoft.JavaScript.NodeApi
JSValue constructor (2 of 3)
Creates a new instance of JSValue
from a handle in the current scope.
C#
public JSValue(napi_value handle)
Exceptions
exception | condition |
---|---|
ArgumentNullException | Thrown when the handle is null. |
Remarks
WARNING: A JS value handle is a pointer to a location in memory, so an invalid handle here may cause an attempt to access an invalid memory location.
See Also
- struct napi_value
- struct JSValue
- namespace Microsoft.JavaScript.NodeApi
JSValue constructor (3 of 3)
Creates a new instance of JSValue
from a handle in the specified scope.
C#
public JSValue(napi_value handle, JSValueScope scope)
Exceptions
exception | condition |
---|---|
ArgumentNullException | Thrown when the handle is null |
Remarks
WARNING: A JS value handle is a pointer to a location in memory, so an invalid handle here may cause an attempt to access an invalid memory location.
See Also
- struct napi_value
- class JSValueScope
- struct JSValue
- namespace Microsoft.JavaScript.NodeApi