Skip to content

JSReference.GetValue method ​

Gets the referenced JS value.

C#
public JSValue GetValue()

Return Value ​

The referenced JS value.

Exceptions ​

exceptioncondition
ObjectDisposedExceptionThe reference is disposed.
NullReferenceExceptionThe 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 ​

Released under the MIT license