Class CommentCollection
- Namespace
- Dynamicweb.Content.Commenting
- Assembly
- Dynamicweb.dll
A collection of Comment
public class CommentCollection : Collection<Comment>, IList<Comment>, ICollection<Comment>, IReadOnlyList<Comment>, IReadOnlyCollection<Comment>, IEnumerable<Comment>, IList, ICollection, IEnumerable
- Inheritance
-
Comment
Collection
- Implements
- Inherited Members
- Extension Methods
Methods
GetCommentById(int)
Finds the comment with the specified id.
Parameters
id
intThe comment id.
Returns
GetRatingAverage()
Returns the average of the ratings in the collection with one decimal, i.e 3.2
Returns
GetTotalCount()
Gets the total number of comments and replies.