SocialDataService.CountCommentsOnUrl method

Gets the count of all social comments for the specified URL.

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

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.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 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.

See also

Reference

SocialDataService class

SocialDataService members

WebSvcSocialDataService namespace