Click or drag to resize
ForumPostInfoProviderSelectForumPosts Method (Int32, String, String, String, Int32, Boolean, Int32, String)
Returns the DataSet of forum posts in specified subtree of forum posts.

Namespace: CMS.Forums
Assembly: CMS.Forums (in CMS.Forums.dll) Version: 8.2.23
Syntax
C#
public static InfoDataSet<ForumPostInfo> SelectForumPosts(
	int forumId,
	string path,
	string whereCondition,
	string orderBy,
	int maxRelativeLevel,
	bool selectOnlyApproved,
	int topN,
	string columns
)

Parameters

forumId
Type: SystemInt32
Forum ID
path
Type: SystemString
Posts path
whereCondition
Type: SystemString
Where condition
orderBy
Type: SystemString
Order specification
maxRelativeLevel
Type: SystemInt32
Maximal relative level
selectOnlyApproved
Type: SystemBoolean
Select only approved posts
topN
Type: SystemInt32
Select TOP N posts
columns
Type: SystemString
List of columns which should be selected

Return Value

Type: InfoDataSetForumPostInfo
See Also