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

# ScriptObjectInvokeMethod Method

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

    public abstract Object InvokeMethod(
    	string name,
    	params Object[] args
    )

    Public MustOverride Function InvokeMethod (
    	name As String,
    	ParamArray args As Object()
    ) As Object

    public:
    virtual Object^ InvokeMethod(
    	String^ name,
    	... array<Object^>^ args
    ) abstract

    abstract InvokeMethod :
            name : string *
            args : Object[] -> Object

#### Parameters

name String
  The name of the method to invoke.
args Object
  Optional arguments for method invocation.

#### Return Value

Object
The invocation result value.

#### Implements

IScriptObjectInvokeMethod(String, Object)
See Also

#### Reference

ScriptObject Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft