Edit

Share via


FunctionPrototype.apply(Object, Object, Object) Method

Definition

Calls the function that this object represents, converting the specified argument object to an array of arguments if it has to.

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

public:
 static System::Object ^ apply(System::Object ^ thisob, System::Object ^ thisarg, System::Object ^ argArray);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Function_apply)]
public static object apply (object thisob, object thisarg, object argArray);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Function_apply)>]
static member apply : obj * obj * obj -> obj
Public Shared Function apply (thisob As Object, thisarg As Object, argArray As Object) As Object

Parameters

thisob
Object

The object that this method is acting upon.

thisarg
Object

The current default scope. Either the contained object of a with statement scope, or the global scope.

argArray
Object

The arguments to pass to the function, as an ArgumentsObject or an ArrayObject.

Returns

The return value of the call to the function that this object represents.

Attributes

Applies to

See also