ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
IScriptEngine Interface
IScriptEngine Methods
AddCOMObject Method
AddCOMType Method
AddHostObject Method
AddHostType Method
AddHostTypes Method
AddRestrictedHostObject Method
CollectGarbage Method
Evaluate Method
EvaluateDocument Method
Execute Method
ExecuteCommand Method
ExecuteDocument Method
GetStackTrace Method
Interrupt Method
Invoke Method

# IScriptEngineInvoke Method

Invokes a global function or procedure.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    Object Invoke(
    	string funcName,
    	params Object[] args
    )

    Function Invoke (
    	funcName As String,
    	ParamArray args As Object()
    ) As Object

    Object^ Invoke(
    	String^ funcName,
    	... array<Object^>^ args
    )

    abstract 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

Object
The return value if a function was invoked, an undefined value otherwise.
See Also

#### Reference

IScriptEngine Interface
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft