public static Create ( JsRuntimeAttributes attributes, JsRuntimeVersion version, JsThreadServiceCallback threadServiceCallback ) : |
||
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 |
public static IeJsRuntime Create(JsRuntimeAttributes attributes, JsRuntimeVersion version, JsThreadServiceCallback threadServiceCallback)
{
IeJsRuntime handle;
IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsCreateRuntime(attributes, version, threadServiceCallback, out handle));
return handle;
}
/// <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)); }