This topic has not yet been rated - Rate this topic

SocialDataService.CountTagsOfUser Method

SharePoint 2010

Gets the total number of all social tags created by the specified user.

Namespace:  [SocialDataService Web service]
Web service reference: http://Site/_vti_bin/SocialDataService.asmx
[SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/SocialDataService/CountTagsOfUser", RequestNamespace = "http://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
	ResponseNamespace = "http://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public int CountTagsOfUser(
	string userAccountName
)

Parameters

userAccountName
Type: System.String
The account name of the user to be counted.

Return Value

Type: System.Int32
The total number of all social tags created by the specified user.
Exception Condition
ArgumentNullException

userAccountName is null.

UserNotFoundException

The user profile for userAccountName cannot be found.

SqlException

The user does not have permission to access the user profile for userAccountName.

If an error occurs or no social tags are found, this method returns 0.

If the account name of the current user is equal to the value of userAccountName or the current user is an administrator, the total includes both private and public social tags; otherwise the count only includes public social tags.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ