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
-
CommentCollection
- Implements
- Inherited Members
- Extension Methods
Methods
GetCommentById(int)
Finds the comment with the specified id.
public Comment GetCommentById(int id)
Parameters
id
intThe comment id.
Returns
GetRatingAverage()
Returns the average of the ratings in the collection with one decimal, i.e 3.2
public double GetRatingAverage()
Returns
GetTotalCount()
Gets the total number of comments and replies.
public int GetTotalCount()