SocialDataService.GetTagTermsOfUser Method
Retrieves the social tag terms created by the specified user, up to the specified maximum number.
Namespace: [SocialDataService Web service]
Web service reference: http://Site/_vti_bin/SocialDataService.asmx
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/GetTagTermsOfUser", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", _
ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetTagTermsOfUser ( _
userAccountName As String, _
maximumItemsToReturn As Nullable(Of Integer) _
) As SocialTermDetail()
'Usage
Dim instance As SocialDataService
Dim userAccountName As String
Dim maximumItemsToReturn As Nullable(Of Integer)
Dim returnValue As SocialTermDetail()
returnValue = instance.GetTagTermsOfUser(userAccountName, _
maximumItemsToReturn)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/GetTagTermsOfUser", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",
ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public SocialTermDetail[] GetTagTermsOfUser(
string userAccountName,
Nullable<int> maximumItemsToReturn
)
Parameters
userAccountName
Type: System.StringThe account name of the user.
maximumItemsToReturn
Type: System.Nullable<Int32>The maximum number of terms to return. This value must not be negative and must be less than 3001. If null or 0, this method returns up to 1000 social tag terms.
Return Value
Type: []
An array that contains the social terms created by the specified user, up to the specified maximum number.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | userAccountName is null . |
UserNotFoundException | The user profile for userAccountName cannot be found. |
ArgumentOutOfRangeException | maximumItemsToReturn is negative or greater than 1000, |
SqlException | The user does not have permission to access the user profile for userAccountName. |