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

# ScriptObjectInvoke Method

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

    public abstract Object Invoke(
    	bool asConstructor,
    	params Object[] args
    )

    Public MustOverride Function Invoke (
    	asConstructor As Boolean,
    	ParamArray args As Object()
    ) As Object

    public:
    virtual Object^ Invoke(
    	bool asConstructor,
    	... array<Object^>^ args
    ) abstract

    abstract Invoke :
            asConstructor : bool *
            args : Object[] -> Object

#### Parameters

asConstructor Boolean
  True to invoke the object as a constructor, false otherwise.
args Object
  Optional arguments for object invocation.

#### Return Value

Object
The invocation result value.

#### Implements

IScriptObjectInvoke(Boolean, Object)
See Also

#### Reference

ScriptObject Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft