BoardMessageInfoProviderGetMessagesCount Method |
Returns count of messages under message board specified by name and document ID.
Namespace: CMS.MessageBoardsAssembly: CMS.MessageBoards (in CMS.MessageBoards.dll) Version: 8.2.23
Syntax public static int GetMessagesCount(
int boardId,
bool approvedOnly,
bool withoutSpam
)
Parameters
- boardId
- Type: SystemInt32
ID of the message board. - approvedOnly
- Type: SystemBoolean
Allows to count approved messages only. - withoutSpam
- Type: SystemBoolean
Allows to count messages not marked as spam only.
Return Value
Type:
Int32See Also