ScriptEngine.Invoke Method |
Invokes a global function or procedure.
Namespace: Microsoft.ClearScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntaxpublic Object Invoke(
string funcName,
params Object[] args
)
Public Function Invoke (
funcName As String,
ParamArray args As Object()
) As Object
public:
virtual Object^ Invoke(
String^ funcName,
... array<Object^>^ args
) sealed
abstract Invoke :
funcName : string *
args : Object[] -> Object
override Invoke :
funcName : string *
args : Object[] -> Object
Parameters
- funcName String
- The name of the global function or procedure to invoke.
- args Object[]
- Optional invocation arguments.
Return Value
ObjectThe return value if a function was invoked, an undefined value otherwise.
Implements
IScriptEngine.Invoke(String, Object[])
See Also