This topic has not yet been rated - Rate this topic

SocialDataService.GetTagsOfUser Method

SharePoint 2010

Retrieves the social tags created by the specified user, up to the specified maximum number and starting at zero-based index.

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

Parameters

userAccountName
Type: System.String
The account name of the specified user.
maximumItemsToReturn
Type: System.Nullable<Int32>
The maximum number of tags to return. If this value is null or 0, this method returns up to 1000 social tags.
startIndex
Type: System.Nullable<Int32>
The zero-based index of the total set of social tags with which the returned set of social tags starts. This value must be null or nonnegative. If this value is null or 0, this method returns the set of social tags starting with the first social tag in the total set of social tags.

Return Value

Type: [SocialDataService Web service].SocialTagDetail[]
An array that contains the social tags created by the specified user, up to the specified maximum number and starting at zero-based index.
Exception Condition
ArgumentNullException

userAccountName is null.

UserNotFoundException

The user profile for userAccountName cannot be found.

ArgumentOutOfRangeException

maximumItemsToReturn is negative or greater than 1000, or startIndex is negative.

SqlException

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

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