BaseJavaScriptInterop.Parameterize

Parameterizes a set of value parameters into string form that can be used in ExecuteScriptAsync() calls. Parameters are turned into a string using JSON values that are literal representations of values passed.

You can wrap the result into a method call like this:

csharp var parmdata = js.parameterize( new [] { 'parm1', pos } ); "method(" + parmdata + ")"

public string Parameterize(Object[] parameters)

Parameters

parameters


See also:

Class BaseJavaScriptInterop

© West Wind Technologies, 2016-2023 • Updated: 11/23/21
Comment or report problem with topic