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

Returns a list of the user's favorites in a directory. 

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 = "GetContentFavorites", Description = "Returns a list of the user's favorites from a specified directory.")]
public DirectoryContentData[] GetContentFavorites(long userId, long directoryId);
Visual Basic
<SoapHeader("AuthHeader")>
<SoapHeader("RequestInfoHeader")>
<WebMethod(MessageName = "GetContentFavorites", Description = "Returns a list of the user's favorites from a specified directory.")>
Public Function GetContentFavorites(userId As long, directoryId As long) As DirectoryContentData()
Parameters 
Description 
directoryId 
ID of the directory to retrieve favorites from. 
userID 
ID of the user to retrieve favorites for. 

An array of DirectoryContentData objects.

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!