Share via


JSInProcessObjectReference.SetValue<TValue>(String, TValue) Method

Definition

Updates the value of the specified JavaScript property synchronously. If the property is not defined on the target object, it will be created.

public void SetValue<TValue>(string identifier, TValue value);
abstract member SetValue : string * 'Value -> unit
override this.SetValue : string * 'Value -> unit
Public Sub SetValue(Of TValue) (identifier As String, value As TValue)

Type Parameters

TValue

JSON-serializable argument type.

Parameters

identifier
String

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

value
TValue

JSON-serializable value.

Implements

Applies to