JsCallFunction() приватный Метод

private JsCallFunction ( IeJsValue function, IeJsValue arguments, ushort argumentCount, IeJsValue &result ) : JsErrorCode
function IeJsValue
arguments IeJsValue
argumentCount ushort
result IeJsValue
Результат JsErrorCode
Пример #1
0
        /// <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);
        }