Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CountRatingsOnUrl method

SocialDataService.CountRatingsOnUrl method

Gets the total number of all social ratings for the specified URL.

Namespace:  WebSvcSocialDataService
Assembly:  UserProfileServices (in UserProfileServices.dll)

[SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/SocialDataService/CountRatingsOnUrl", RequestNamespace = "http://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
	ResponseNamespace = "http://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public int CountRatingsOnUrl(
	string url
)

Parameters

url
Type: System.String

The specified URL to be counted. This value must be in a valid URI format and must contain fewer than 2085 characters.

Return value

Type: System.Int32
The total number of all social ratings for the specified URL.

ExceptionCondition
ArgumentNullException

url is null .

UriFormatException

The value of url is not in a valid format.

If an error occurs or no social rating is found, this method returns 0.

Show:
© 2015 Microsoft