BlogCommentInfoProviderGetPostCommentsCount Method |
Returns count of the post comments.
Namespace: CMS.BlogsAssembly: CMS.Blogs (in CMS.Blogs.dll) Version: 8.2.23
Syntax public static int GetPostCommentsCount(
int postDocumentId,
bool onlyApproved,
bool includingSpam = false,
bool includingTrackbacks = true
)
Parameters
- postDocumentId
- Type: SystemInt32
Post documentID - onlyApproved
- Type: SystemBoolean
Indicates if only approved comments should be included in the count - includingSpam (Optional)
- Type: SystemBoolean
Indicates if comments which are marked as SPAM should be included in the count - includingTrackbacks (Optional)
- Type: SystemBoolean
Indicates if comments which are marked as trackbacks should be included in the count
Return Value
Type:
Int32See Also