BoardMessageInfoProvider GetMessagesCount Method Kentico 8.0 API Reference
Returns count of messages under message board specified by name and document ID.

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

Parameters

boardId
Type: OnlineSystem Int32
ID of the message board.
approvedOnly
Type: OnlineSystem Boolean
Allows to count approved messages only.
withoutSpam
Type: OnlineSystem Boolean
Allows to count messages not marked as spam only.

Return Value

Type: OnlineInt32
See Also