SocialDataService.GetRatingsOfUser method

Retrieves all social ratings associated with the specified user.

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

Syntax

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

returnValue = instance.GetRatingsOfUser(userAccountName)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/GetRatingsOfUser", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
    ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public SocialRatingDetail[] GetRatingsOfUser(
    string userAccountName
)

Parameters

  • userAccountName
    Type: System.String

    The account name of the user.

Return value

Type: []
An array that contains all social ratings associated with the specified user.

Exceptions

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.

Remarks

This method returns up to 1000 social ratings associated with the specified user.

See also

Reference

SocialDataService class

SocialDataService members

WebSvcSocialDataService namespace