You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.Community Namespace > Classes > Favorites Class > Favorites Methods > GetFavoriteId
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Favorites.GetFavoriteId Method

This method checks to see if a piece of the URI is already in a user's favorites. If it is, it returns the ID.

C#
public Long GetFavoriteId(String favoriteName, String favoriteUri, Long userId);
Visual Basic
Public Function GetFavoriteId(ByVal favoriteName As String, ByVal favoriteUri As String, ByVal userId As Long) As Long
Parameters 
Description 
favoriteName 
The favorite's name. 
favoriteUri 
The favorite's URI. 
userId 
The ID of user to whose favorites are being checked. 

If the favorite exists, it returns the ID; a non-negative value greater than 0.

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!