You are here: Ektron Namespace > Web Services API > Ektron.Services Namespace > Classes > ContentRating Class > ContentRating Methods > AddContentRating
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
ContentRating.AddContentRating 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. 

This method can be accessed through the ContentRating.asmx file located in:

~/Workarea/webservices/WebServiceAPI/Content/ContentRating.asmx
C#
[SoapHeader("AuthHeader")]
[SoapHeader("RequestInfoHeader")]
[WebMethod(MessageName = "AddContentRating", Description = "")]
public void AddContentRating(long contentid, long userid, int userRating, string userComments);
Visual Basic
<SoapHeader("AuthHeader")>
<SoapHeader("RequestInfoHeader")>
<WebMethod(MessageName = "AddContentRating", Description = "")>
Public Function AddContentRating(contentid As long, userid As long, userRating As Integer, userComments As string) As void
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!