Skip to content

JSReference.TryGetValue method ​

Attempts to get the referenced JS value.

C#
public bool TryGetValue(out JSValue value)
parameterdescription
valueReturns 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 ​

exceptioncondition
ObjectDisposedExceptionThe reference is disposed.

See Also ​

Released under the MIT license