Click or drag to resize
BoardMessageInfoProviderGetMessagesCount Method
Returns count of messages under message board specified by name and document ID.

Namespace: CMS.MessageBoards
Assembly: CMS.MessageBoards (in CMS.MessageBoards.dll) Version: 10.0.0
Syntax
C#
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: Int32
See Also