MsieJavaScriptEngine.JsRt.JavaScriptRuntime.CreateContext C# (CSharp) Method

CreateContext() public method

Creates a debug script context for running scripts.
Each script context has its own global object that is isolated from all other script contexts.
public CreateContext ( Native debugApplication ) : JavaScriptContext
debugApplication Native The debug application to use.
return JavaScriptContext
        public JavaScriptContext CreateContext(Native.IDebugApplication64 debugApplication)
        {
            JavaScriptContext reference;
            if (!Environment.Is64BitProcess)
            {
                throw new InvalidOperationException();
            }
            Native.ThrowIfError(Native.JsCreateContext(this, debugApplication, out reference));
            return reference;
        }

Same methods

JavaScriptRuntime::CreateContext ( ) : JavaScriptContext