ar"><div class="codeSnippetToolBarText"><a id="IDACC_copyCode" href="#" class="copyCodeSnippet" onclick="CopyToClipboard('IDACC');return false;" title="Copy">Copy</a></div></div><div id="IDACC_code_Div1" class="codeSnippetContainerCode" style="display: block"><pre xml:space="preserve"><span class="highlight-comment">// See if the last run of a task returned an error code</span>
<span class="highlight-keyword">if</span> (TaskService.Instance.GetTask(<span class="highlight-literal">"MyTask"</span>).LastTaskRe