JSValue.Wrap method (1 of 2)
Attaches an object to this JSValue.
C#
public JSValue Wrap(object value)
parameter | description |
---|---|
value | The object to be wrapped. |
Return Value
Copy of this JSValue struct.
See Also
- struct JSValue
- namespace Microsoft.JavaScript.NodeApi
JSValue.Wrap method (2 of 2)
Attaches an object to this JSValue.
C#
public JSValue Wrap(object value, out JSReference wrapperWeakRef)
parameter | description |
---|---|
value | The object to be wrapped. |
wrapperWeakRef | Returns a weak reference to the JS wrapper. |
Return Value
The JS wrapper.
See Also
- class JSReference
- struct JSValue
- namespace Microsoft.JavaScript.NodeApi