Click or drag to resize
ForumViewerPostCount Method
Returns number of posts in current forum or thread.

Namespace: CMS.Forums.Web.UI
Assembly: CMS.Forums.Web.UI (in CMS.Forums.Web.UI.dll) Version: 11.0.0
Syntax
C#
public int PostCount(
	Object data,
	bool thread
)

Parameters

data
Type: SystemObject
Container.DataItem
thread
Type: SystemBoolean
If is true, returns number of posts for current thread, otherwise returns number of posts for current forum

Return Value

Type: Int32
See Also