Click or drag to resize
BlogCommentInfoProvider.GetPostCommentsCount Method
Returns count of the post comments.

Namespace: CMS.Blogs
Assembly: CMS.Blogs (in CMS.Blogs.dll) Version: 12.0.0
Syntax
C#
public static int GetPostCommentsCount(
	int postDocumentId,
	bool onlyApproved,
	bool includingSpam = false
)

Parameters

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

Return Value

Type: Int32
See Also