다음을 통해 공유


SocialDataService.GetRatingsOfUser Method

Retrieves all social ratings associated with the specified user.

Namespace:  [SocialDataService Web service]
Web service reference: http://Site/_vti_bin/SocialDataService.asmx

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

SocialDataService Web Service