You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.Community 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.

C#
public AddContentFavorite(Long contentId, Long userId, Long directoryId);
Visual Basic
Public Sub AddContentFavorite(ByVal contentId As Long, ByVal userId As Long, ByVal directoryId As Long)
Parameters 
Description 
contentId 
ID of the content item. 
userId 
ID of user adding the favorite. 
directoryId 
ID of the directory to add the content item to 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!