You have to use EnvDTE.TaskList and its TaskItems property. I suppose that
each TaskItem object has properties to do that.

Signature
Carlos J. Quintero
MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
>I would like to get the list of build errors/syntax errors from the task
> list. My add-in is a vb compiler that shells to vbc.exe and I'd like to
[quoted text clipped - 5 lines]
>
> WALDO