SocialDataService.GetRatingsOnUrl Method
Retrieves all social ratings created for the specified URL.
Namespace: [SocialDataService Web service]
Web service reference: http://Site/_vti_bin/SocialDataService.asmx
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.StringThe 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.