FunctionPrototype.apply(Object, Object, Object) 方法

定义

调用此对象表示的函数,如果指定参数对象必须转换为参数数组。

此 API 支持产品基础结构,不能在代码中直接使用。

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

参数

thisob
Object

此方法所依据的对象。

thisarg
Object

当前默认作用域。 语句范围的包含对象 with 或全局作用域。

argArray
Object

要作为或 .ArgumentsObject. 传递给函数ArrayObject的参数。

返回

对此对象所表示的函数的调用的返回值。

属性

适用于

另请参阅