Skip to content

JSValue.Wrap method (1 of 2) ​

Attaches an object to this JSValue.

C#
public JSValue Wrap(object value)
parameterdescription
valueThe object to be wrapped.

Return Value ​

Copy of this JSValue struct.

See Also ​


JSValue.Wrap method (2 of 2) ​

Attaches an object to this JSValue.

C#
public JSValue Wrap(object value, out JSReference wrapperWeakRef)
parameterdescription
valueThe object to be wrapped.
wrapperWeakRefReturns a weak reference to the JS wrapper.

Return Value ​

The JS wrapper.

See Also ​

Released under the MIT license