Click or drag to resize
ForumUserFavoritesInfoProviderAddUserFavoritePost Method
Adds post to user favorites (if the rercord does not exists yet).

Namespace: CMS.Forums
Assembly: CMS.Forums (in CMS.Forums.dll) Version: 11.0.0
Syntax
C#
public static bool AddUserFavoritePost(
	int postId,
	int userId,
	string favoriteName,
	int siteId
)

Parameters

postId
Type: SystemInt32
ID of the favorite post
userId
Type: SystemInt32
ID of the user
favoriteName
Type: SystemString
Favorite name
siteId
Type: SystemInt32
Site id

Return Value

Type: Boolean
Returns true if forum was added to favorites
See Also