BlogCommentInfoProvider GetPostCommentsCountInternal Method Kentico 8.1 API Reference
Returns count of the post comments.

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

Parameters

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

Return Value

Type: OnlineInt32
See Also