JSInProcessObjectReference.SetValue<TValue>(String, TValue) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.