ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
ScriptObject Class
ScriptObject Methods
DeleteProperty Method
Dispose Method
GetProperty Method
Invoke Method
InvokeAsFunction Method
InvokeMethod Method
SetProperty Method

# ScriptObjectInvokeAsFunction Method

Invokes the script object as a function.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public Object InvokeAsFunction(
    	params Object[] args
    )

    Public Function InvokeAsFunction (
    	ParamArray args As Object()
    ) As Object

    public:
    virtual Object^ InvokeAsFunction(
    	... array<Object^>^ args
    ) sealed

    abstract InvokeAsFunction :
            args : Object[] -> Object
    override InvokeAsFunction :
            args : Object[] -> Object

#### Parameters

args Object
  Optional arguments for object invocation.

#### Return Value

Object
The invocation result value.

#### Implements

IScriptObjectInvokeAsFunction(Object)
See Also

#### Reference

ScriptObject Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft