SocialDataService.GetTagsOfUser method

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

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/GetTagsOfUser", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetTagsOfUser ( _
    userAccountName As String, _
    maximumItemsToReturn As Nullable(Of Integer), _
    startIndex As Nullable(Of Integer) _
) As SocialTagDetail()
'Usage
Dim instance As SocialDataService
Dim userAccountName As String
Dim maximumItemsToReturn As Nullable(Of Integer)
Dim startIndex As Nullable(Of Integer)
Dim returnValue As SocialTagDetail()

returnValue = instance.GetTagsOfUser(userAccountName, _
    maximumItemsToReturn, startIndex)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/GetTagsOfUser", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
    ResponseNamespace = "https://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: []
An array that contains the social tags created by the specified user, up to the specified maximum number and starting at zero-based index.

Exceptions

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.

See also

Reference

SocialDataService class

SocialDataService members

WebSvcSocialDataService namespace