JSReference.GetValue method
Gets the referenced JS value.
C#
public JSValue GetValue()Return Value
The referenced JS value.
Exceptions
| exception | condition |
|---|---|
| ObjectDisposedException | The reference is disposed. |
| NullReferenceException | The reference is weak and the weakly-referenced JS value is not available. |
Remarks
Use this method with strong references when the referenced value is expected to be always available. For weak references, use TryGetValue instead.
See Also
- struct JSValue
- class JSReference
- namespace Microsoft.JavaScript.NodeApi