BlogCommentInfoProvider GetPostCommentsCount Method Kentico 8.0 API Reference
Returns count of the post comments.

Namespace: CMS.Blogs
Assembly: CMS.Blogs (in CMS.Blogs.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

postDocumentId
Type: OnlineSystem Int32
Post documentID
onlyApproved
Type: OnlineSystem Boolean
Indicates if only approved comments should be included in the count
includingSpam (Optional)
Type: OnlineSystem Boolean
Indicates if comments which are marked as SPAM should be included in the count
includingTrackbacks (Optional)
Type: OnlineSystem Boolean
Indicates if comments which are marked as trackbacks should be included in the count

Return Value

Type: OnlineInt32
See Also