Edit

Share via


ScriptFunction.Invoke(Object, Object[]) Method

Definition

Invokes a method of the prototype-based object, passing in the specified arguments.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 System::Object ^ Invoke(System::Object ^ thisob, ... cli::array <System::Object ^> ^ args);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject | Microsoft.JScript.JSFunctionAttributeEnum.HasVarArgs)]
public object Invoke (object thisob, params object[] args);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject | Microsoft.JScript.JSFunctionAttributeEnum.HasVarArgs)>]
member this.Invoke : obj * obj[] -> obj
Public Function Invoke (thisob As Object, ParamArray args As Object()) As Object

Parameters

thisob
Object

The object that this method is acting upon.

args
Object[]

The arguments to pass to the method.

Returns

The result of the call to the method.

Attributes

Remarks

Invoke often acts as a constructor or create instance call.

Applies to