Skip to content

JSFunction constructor (1 of 26)

Creates a new unnamed JS function takes no arguments and returns void.

C#
public JSFunction(Action callback)

See Also


JSFunction constructor (2 of 26)

Creates a new unnamed JS function takes five arguments and returns void.

C#
public JSFunction(Action<JSValue, JSValue, JSValue, JSValue, JSValue> callback)
parameterdescription
callback

See Also


JSFunction constructor (3 of 26)

Creates a new unnamed JS function takes four arguments and returns void.

C#
public JSFunction(Action<JSValue, JSValue, JSValue, JSValue> callback)

See Also


JSFunction constructor (4 of 26)

Creates a new unnamed JS function takes three arguments and returns void.

C#
public JSFunction(Action<JSValue, JSValue, JSValue> callback)

See Also


JSFunction constructor (5 of 26)

Creates a new unnamed JS function takes two arguments and returns void.

C#
public JSFunction(Action<JSValue, JSValue> callback)

See Also


JSFunction constructor (6 of 26)

Creates a new unnamed JS function takes one argument and returns void.

C#
public JSFunction(Action<JSValue> callback)

See Also


JSFunction constructor (7 of 26)

Creates a new unnamed JS function takes five arguments and returns a value.

C#
public JSFunction(Func<JSValue, JSValue, JSValue, JSValue, JSValue, JSValue> callback)

See Also


JSFunction constructor (8 of 26)

Creates a new unnamed JS function takes four arguments and returns a value.

C#
public JSFunction(Func<JSValue, JSValue, JSValue, JSValue, JSValue> callback)

See Also


JSFunction constructor (9 of 26)

Creates a new unnamed JS function takes three arguments and returns a value.

C#
public JSFunction(Func<JSValue, JSValue, JSValue, JSValue> callback)

See Also


JSFunction constructor (10 of 26)

Creates a new unnamed JS function takes two arguments and returns a value.

C#
public JSFunction(Func<JSValue, JSValue, JSValue> callback)

See Also


JSFunction constructor (11 of 26)

Creates a new unnamed JS function takes one argument and returns a value.

C#
public JSFunction(Func<JSValue, JSValue> callback)

See Also


JSFunction constructor (12 of 26)

Creates a new unnamed JS function takes no arguments and returns a value.

C#
public JSFunction(Func<JSValue> callback)
parameterdescription
callback

See Also


JSFunction constructor (13 of 26)

Creates a new unnamed JS function with a callback and optional callback data.

C#
public JSFunction(JSCallback callback, object? callbackData = null)

See Also


JSFunction constructor (14 of 26)

Creates a new named JS function takes no arguments and returns void.

C#
public JSFunction(string name, Action callback)

See Also


JSFunction constructor (15 of 26)

Creates a new named JS function takes five arguments and returns void.

C#
public JSFunction(string name, Action<JSValue, JSValue, JSValue, JSValue, JSValue> callback)

See Also


JSFunction constructor (16 of 26)

Creates a new named JS function takes four arguments and returns void.

C#
public JSFunction(string name, Action<JSValue, JSValue, JSValue, JSValue> callback)

See Also


JSFunction constructor (17 of 26)

Creates a new named JS function takes three arguments and returns void.

C#
public JSFunction(string name, Action<JSValue, JSValue, JSValue> callback)

See Also


JSFunction constructor (18 of 26)

Creates a new named JS function takes two arguments and returns void.

C#
public JSFunction(string name, Action<JSValue, JSValue> callback)

See Also


JSFunction constructor (19 of 26)

Creates a new named JS function takes one argument and returns void.

C#
public JSFunction(string name, Action<JSValue> callback)

See Also


JSFunction constructor (20 of 26)

Creates a new named JS function takes five arguments and returns a value.

C#
public JSFunction(string name, Func<JSValue, JSValue, JSValue, JSValue, JSValue, JSValue> callback)

See Also


JSFunction constructor (21 of 26)

Creates a new named JS function takes four arguments and returns a value.

C#
public JSFunction(string name, Func<JSValue, JSValue, JSValue, JSValue, JSValue> callback)

See Also


JSFunction constructor (22 of 26)

Creates a new named JS function takes three arguments and returns a value.

C#
public JSFunction(string name, Func<JSValue, JSValue, JSValue, JSValue> callback)

See Also


JSFunction constructor (23 of 26)

Creates a new named JS function takes two arguments and returns a value.

C#
public JSFunction(string name, Func<JSValue, JSValue, JSValue> callback)

See Also


JSFunction constructor (24 of 26)

Creates a new named JS function takes one argument and returns a value.

C#
public JSFunction(string name, Func<JSValue, JSValue> callback)

See Also


JSFunction constructor (25 of 26)

Creates a new named JS function takes no arguments and returns a value.

C#
public JSFunction(string name, Func<JSValue> callback)

See Also


JSFunction constructor (26 of 26)

Creates a new named JS function with a callback and optional callback data.

C#
public JSFunction(string name, JSCallback callback, object? callbackData = null)

See Also

Released under the MIT license