JSReference.TryGetValue method
Attempts to get the referenced JS value.
C#
public bool TryGetValue(out JSValue value)| parameter | description |
|---|---|
| value | Returns the referenced JS value, or default(JSValue), equivalent to undefined, if the reference is weak and the value is not available. |
Return Value
True if the value was obtained, false if the reference is weak and the value is not available.
Exceptions
| exception | condition |
|---|---|
| ObjectDisposedException | The reference is disposed. |
See Also
- struct JSValue
- class JSReference
- namespace Microsoft.JavaScript.NodeApi