Extensions_ToPromise_1.htm" title="ToPromise(Task, ScriptEngine) Method" tocid="M_Microsoft_ClearScript_JavaScript_JavaScriptExtensions_ToPromise_1">ToPromise(Task, ScriptEngine) Method</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="../html/M_Microsoft_ClearScript_JavaScript_JavaScriptExtensions_ToPromise__1_1.htm" title="ToPromise&lt;T&gt;(Task&lt;T&gt;, ScriptEngine) Method" tocid="M_Microsoft_ClearScript_JavaScript_JavaScriptExtensions_ToPromise__1_1">ToPromise&lt;T