You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.Content Namespace > Classes > ContentRating Class > ContentRating Methods > GetContentRatingAddRating
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
ContentRating.GetContentRatingAddRating Method

Adds a content rating to the database. Internally a check is done to ensure the user has not already rated the content, and passes down the rating and any comments the user supplied.

C#
public GetContentRatingAddRating(Long contentid, Long userid, int userRating, String userComments);
Visual Basic
Public Sub GetContentRatingAddRating(ByVal contentid As Long, ByVal userid As Long, ByVal userRating As Integer, ByVal userComments As String)
Parameters 
Description 
contentid 
The numeric ID associated with the content block being rated. 
userid 
The unique global identifier stored as a cookie by the user. 
userRating 
The rating the user supplies (1-9). 
userComments 
Optional comments that the user provides. 
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!