Share via


SocialRatingManager.SetRating method (Uri, Int32, FeedbackData)

Creates a rating with the specified value, on a scale of 0-5, for the specified URL.

Namespace:  Microsoft.Office.Server.SocialData
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Function SetRating ( _
    url As Uri, _
    rating As Integer, _
    analysisData As FeedbackData _
) As DateTime
'Usage
Dim instance As SocialRatingManager
Dim url As Uri
Dim rating As Integer
Dim analysisData As FeedbackData
Dim returnValue As DateTime

returnValue = instance.SetRating(url, _
    rating, analysisData)
public DateTime SetRating(
    Uri url,
    int rating,
    FeedbackData analysisData
)

Parameters

Return value

Type: System.DateTime
Returns the DateTime representing the time when the rating was set.

See also

Reference

SocialRatingManager class

SocialRatingManager members

SetRating overload

Microsoft.Office.Server.SocialData namespace