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, long)

Adds a piece of content to user's favorites and places it in a subdirectory. 

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 to directory", Description = "Adds a content item to a user's favorites and places it in a subdirectory.")]
public void AddContentFavorite(long contentId, long userId, long directoryId);
Visual Basic
<SoapHeader("AuthHeader")>
<SoapHeader("RequestInfoHeader")>
<WebMethod(MessageName = "AddContentFavorite to directory", Description = "Adds a content item to a user's favorites and places it in a subdirectory.")>
Public Function AddContentFavorite(contentId As long, userId As long, directoryId As long) As void
Parameters 
Description 
contentId 
ID of the content item. 
userId 
ID of the user. 
directoryId 
ID of the directory to add the content in the user's favorites. 
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!