private JsCallFunction ( |
||
function | ||
arguments | ||
argumentCount | ushort | |
result | ||
Результат | JsErrorCode |
/// <summary> /// Invokes a function /// </summary> /// <remarks> /// Requires an active script context. /// </remarks> /// <param name="arguments">The arguments to the call</param> /// <returns>The <c>Value</c> returned from the function invocation, if any</returns> public IeJsValue CallFunction(params IeJsValue[] arguments) { IeJsValue returnReference; if (arguments.Length > ushort.MaxValue) { throw new ArgumentOutOfRangeException("arguments"); } IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsCallFunction(this, arguments, (ushort)arguments.Length, out returnReference)); return(returnReference); }