MsieJavaScriptEngine.JsRt.Ie.IeJsRuntime.Create C# (CSharp) Method

Create() public static method

Creates a new runtime
public static Create ( JsRuntimeAttributes attributes, JsRuntimeVersion version, JsThreadServiceCallback threadServiceCallback ) : IeJsRuntime
attributes JsRuntimeAttributes The attributes of the runtime to be created
version JsRuntimeVersion The version of the runtime to be created
threadServiceCallback JsThreadServiceCallback The thread service for the runtime. Can be null.
return IeJsRuntime
        public static IeJsRuntime Create(JsRuntimeAttributes attributes, JsRuntimeVersion version, JsThreadServiceCallback threadServiceCallback)
        {
            IeJsRuntime handle;
            IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsCreateRuntime(attributes, version, threadServiceCallback, out handle));

            return handle;
        }

Same methods

IeJsRuntime::Create ( ) : IeJsRuntime
IeJsRuntime::Create ( JsRuntimeAttributes attributes, JsRuntimeVersion version ) : IeJsRuntime

Usage Example

Exemplo n.º 1
0
 /// <summary>
 /// Creates a instance of JavaScript runtime with special settings
 /// </summary>
 /// <returns>Instance of JavaScript runtime with special settings</returns>
 private static IeJsRuntime CreateJsRuntime()
 {
     return(IeJsRuntime.Create(JsRuntimeAttributes.None, JsRuntimeVersion.VersionEdge, null));
 }