Share via


SocialRatingManager.SetRating method (Uri, Int32, String)

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, _
    title As String _
) As DateTime
'Usage
Dim instance As SocialRatingManager
Dim url As Uri
Dim rating As Integer
Dim title As String
Dim returnValue As DateTime

returnValue = instance.SetRating(url, _
    rating, title)
public DateTime SetRating(
    Uri url,
    int rating,
    string title
)

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