SocialDataService.GetRatingsOnUrl method

Retrieves all social ratings created for the specified URL.

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/GetRatingsOnUrl", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetRatingsOnUrl ( _
    url As String _
) As SocialRatingDetail()
'Usage
Dim instance As SocialDataService
Dim url As String
Dim returnValue As SocialRatingDetail()

returnValue = instance.GetRatingsOnUrl(url)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/GetRatingsOnUrl", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
    ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public SocialRatingDetail[] GetRatingsOnUrl(
    string url
)

Parameters

  • url
    Type: System.String

    The URL for which social ratings are retrieved. This value must be in a valid URI format and must contain fewer than 2085 characters.

Return value

Type: []
An array that contains all social ratings created for the specified URL.

Exceptions

Exception Condition
ArgumentNullException

url is null .

UriFormatException

url is not in the correct format.

SqlException

The user does not have permission to view the social ratings for url.

Remarks

This method returns all social ratings for the URL specified by the url parameter.

See also

Reference

SocialDataService class

SocialDataService members

WebSvcSocialDataService namespace