SocialDataService.CountCommentsOfUserOnUrl method
SharePoint 2013
This documentation is preliminary and is subject to change.
Gets the count of all social comments created by the specified user for the specified URL.
Assembly: UserProfileServices (in UserProfileServices.dll)
[SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/SocialDataService/CountCommentsOfUserOnUrl", RequestNamespace = "http://microsoft.com/webservices/SharePointPortalServer/SocialDataService", ResponseNamespace = "http://microsoft.com/webservices/SharePointPortalServer/SocialDataService", Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)] public int CountCommentsOfUserOnUrl( string userAccountName, string url )
Parameters
- userAccountName
- Type: System.String
The account name of the specified user.
- 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.Int32The count of all social comments created by the specified user for the specified URL.
| Exception | Condition |
|---|---|
| ArgumentNullException | userAccountName is null . |
| UserNotFoundException | The user profile for userAccountName cannot be found. |
| UriFormatException | The value of url is not in a valid format. |
| SqlException | The user does not have permission to access the user profile for userAccountName. |