FunctionPrototype.apply(Object, Object, Object) Metoda

Definicja

Wywołuje funkcję, którą reprezentuje ten obiekt, konwertując określony obiekt argumentu na tablicę argumentów, jeśli musi.

Ten interfejs API obsługuje infrastrukturę produktu i nie jest przeznaczony do użycia bezpośrednio z poziomu kodu.

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

Parametry

thisob
Object

Obiekt, na który działa ta metoda.

thisarg
Object

Bieżący zakres domyślny. Zawarty obiekt zakresu instrukcji with lub zakres globalny.

argArray
Object

Argumenty, które mają być przekazywane do funkcji jako element ArgumentsObject lub ArrayObject.

Zwraca

Object

Zwracana wartość wywołania funkcji, którą reprezentuje ten obiekt.

Atrybuty

Dotyczy

Zobacz też