Share via


IJSInProcessObjectReference.GetValue<TValue>(String) Method

Definition

Reads the value of the specified JavaScript property synchronously.

public TValue GetValue<TValue>(string identifier);
abstract member GetValue : string -> 'Value
Public Function GetValue(Of TValue) (identifier As String) As TValue

Type Parameters

TValue

The JSON-serializable return type.

Parameters

identifier
String

An identifier for the property to read. For example, the value "someScope.someProp" will read the value of the property window.someScope.someProp.

Returns

TValue

An instance of TValue obtained by JSON-deserializing the return value.

Applies to