SocialRatingManager.SetRating method (Uri, Int32, String, 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, _
title As String, _
analysisData As FeedbackData _
) As DateTime
'Usage
Dim instance As SocialRatingManager
Dim url As Uri
Dim rating As Integer
Dim title As String
Dim analysisData As FeedbackData
Dim returnValue As DateTime
returnValue = instance.SetRating(url, _
rating, title, analysisData)
public DateTime SetRating(
Uri url,
int rating,
string title,
FeedbackData analysisData
)
Parameters
- url
Type: System.Uri
- rating
Type: System.Int32
- title
Type: System.String
analysisData
Type: Microsoft.Office.Server.SocialData.FeedbackDataA FeedbackData object that provides additional data for logging in the analysis pipeline.
Return value
Type: System.DateTime
Returns the DateTime representing the time when the rating was set.