FunctionPrototype.apply(Object, Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應