JsCallFunction() private method

private JsCallFunction ( JavaScriptValue function, JavaScriptValue arguments, ushort argumentCount, JavaScriptValue &result ) : JavaScriptErrorCode
function JavaScriptValue
arguments JavaScriptValue
argumentCount ushort
result JavaScriptValue
return JavaScriptErrorCode
コード例 #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 JavaScriptValue CallFunction(params JavaScriptValue[] arguments)
        {
            JavaScriptValue returnReference;

            if (arguments.Length > ushort.MaxValue)
            {
                throw new ArgumentOutOfRangeException("arguments");
            }

            Native.ThrowIfError(Native.JsCallFunction(this, arguments, (ushort)arguments.Length, out returnReference));
            return(returnReference);
        }