You are here: Ektron Namespace > Web Services API > Ektron.Services Namespace > Classes > Favorites Class > Favorites Methods > AddContentFavorite Method > AddContentFavorite
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Favorites.AddContentFavorite Method (long, long)

Adds a piece of content to user's favorites. 

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

~/Workarea/webservices/WebServiceAPI/Community/Favorites.asmx
C#
[SoapHeader("AuthHeader")]
[SoapHeader("RequestInfoHeader")]
[WebMethod(MessageName = "AddContentFavorite", Description = "Adds a piece of content to user's favorites.")]
public void AddContentFavorite(long contentId, long userId);
Visual Basic
<SoapHeader("AuthHeader")>
<SoapHeader("RequestInfoHeader")>
<WebMethod(MessageName = "AddContentFavorite", Description = "Adds a piece of content to user's favorites.")>
Public Function AddContentFavorite(contentId As long, userId As long) As void
Parameters 
Description 
contentId 
ID of the content item. 
userId 
ID of the user. 
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!