Skip to content

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


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

exceptioncondition
ArgumentNullExceptionThrown 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


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

exceptioncondition
ArgumentNullExceptionThrown 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

Released under the MIT license