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 count of all social comments 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/CountCommentsOnUrl", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", _
ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function CountCommentsOnUrl ( _
url As String _
) As Integer
'Usage
Dim instance As SocialDataService
Dim url As String
Dim returnValue As Integer
returnValue = instance.CountCommentsOnUrl(url)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/CountCommentsOnUrl", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",
ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public int CountCommentsOnUrl(
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 count of all social comments 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 comment is found, this method returns 0.