title: How to get user rating programatically in Sharepoint 2010?
body: <p>So I have enabled Ratings in Sharepoint 2010 for a Document Library following this guide: <a href="http://weblogs.asp.net/bsimser/archive/2009/10/19/sharepoint-2010-what-s-new-ratings-spc09.aspx" rel="nofollow">http://weblogs.asp.net/bsimser/archive/2009/10/19/sharepoint-2010-what-s-new-ratings-spc09.aspx</a></p>
  
  <p>Now I need a way to get the ratings programatically in a Webpart.</p>
  
  <p>I would like a way to get a list like the following (any other way is welcome though):</p>
  
  <pre><code>Item Id/Url    |    Rating   |  UserId
  </code></pre>
  
  <p>Thank you</p>