IJavaScriptEngine.

CallFunction<T>(string, Object[]) Method

Summary

Calls a JavaScript function.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.JavaScript
Containing Type
IJavaScriptEngine

Syntax

T CallFunction<T>(string functionName, params Object[] args)

Type Parameters

Name Description
T Type of function result.

Parameters

Name Type Description
functionName string Function name.
args Object[] Function arguments.

Return Value

Type Description
T Result of the function execution.
GitHub