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