JsRunScript() private method

private JsRunScript ( string script, JsSourceContext sourceContext, string sourceUrl, IeJsValue &result ) : JsErrorCode
script string
sourceContext JsSourceContext
sourceUrl string
result IeJsValue
return JsErrorCode
Exemplo n.º 1
0
        /// <summary>
        /// Executes a script
        /// </summary>
        /// <remarks>
        /// Requires an active script context.
        /// </remarks>
        /// <param name="script">The script to run</param>
        /// <param name="sourceContext">The cookie identifying the script that can be used by script contexts that have debugging enabled</param>
        /// <param name="sourceName">The location the script came from</param>
        /// <returns>The result of the script, if any</returns>
        public static IeJsValue RunScript(string script, JsSourceContext sourceContext, string sourceName)
        {
            IeJsValue result;

            IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsRunScript(script, sourceContext, sourceName, out result));

            return(result);
        }