This topic has not yet been rated - Rate this topic

SocialDataService.CountCommentsOfUserOnUrl method

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.

Namespace:  WebSvcSocialDataService
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.Int32
The count of all social comments created by the specified user for the specified URL.
ExceptionCondition
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.

If an error occurs or no social comment is found, this method returns 0

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.