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
Properties
TotalComments
[Obsolete("Use GetTotalCount instead.")]
public int TotalComments { get; }
Property Value
Methods
GetCommentById(int)
Finds the comment with the specified id.
public Comment GetCommentById(int id)
Parameters
id
int- The 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()
Returns
RatingAverage()
[Obsolete("Use GetRatingAverage instead.")]
public double RatingAverage()