Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the total number of all social ratings 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/CountRatingsOnUrl", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", _
ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function CountRatingsOnUrl ( _
url As String _
) As Integer
'Usage
Dim instance As SocialDataService
Dim url As String
Dim returnValue As Integer
returnValue = instance.CountRatingsOnUrl(url)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/CountRatingsOnUrl", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",
ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public int CountRatingsOnUrl(
string url
)
Parameters
url
Type: System.StringThe 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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | url is null . |
UriFormatException | The value of url is not in a valid format. |
Remarks
If an error occurs or no social rating is found, this method returns 0.