Friday, 14 October 2011

Get Page Ratings using Social Data Web Service in SharePoint 2010


you can easily get the rating on a Page with Social Data Web Service avaiable
in SharePoint 2010.

An Example I have here -

SocialDataService mySocialDataService = new SocialDataService();

mySocialDataService.Credentials =
System.Net.CredentialCache.DefaultCredentials;

mySocialDataService.Url
= "http://YourSharePoint Site/_vti_bin/socialdataservice.asm";

SocialRatingDetail ratingonPage1 = mySocialDataService.GetRatingOnUrl(ratingonwikiPageURL);

String Rating = ratingonPage1.Rating..ToString();

Ads by Google

No comments:

Post a Comment