Language

IJSInProcessObjectReference.SetValue(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 virtual void SetValue(string identifier, TValue value);
abstract member SetValue : string * 'Value -> unit
override this.SetValue : string * 'Value -> unit
Public Overridable 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.

Applies to