title: Suppressing obsolete warnings in VB.NET
body: <p>I have VB.NET code in <a href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio#Visual_Studio_2008" rel="nofollow noreferrer">Visual&nbsp;Studio&nbsp;2008</a> using an obsolete method and would like to suppress the warning. Unfortunately, following the recommendation is not a good solution, because it requires using a different class, which works differently, in important ways.</p>
  
  <p>I'm trying to suppress the warning using System.Diagnostics.CodeAnalysis.SuppressMessage, but I don't know what to write as the parameters for the attribute and can't find any relevant reference.</p>
  
  <p>I should also say that, right-clicking on the error in the error list I don't have any 'Suppress Message' option.</p>