ForumPostInfoProviderSelectForumPostsInternal Method (Int32, String, String, String, Int32, Boolean, Int32, String, Int32, Int32, Int32) |
Returns the DataSet of forum posts in specified subtree of forum posts.
Namespace: CMS.ForumsAssembly: CMS.Forums (in CMS.Forums.dll) Version: 10.0.0
Syntax protected virtual InfoDataSet<ForumPostInfo> SelectForumPostsInternal(
int forumId,
string path,
string whereCondition,
string orderBy,
int maxRelativeLevel,
bool selectOnlyApproved,
int topN,
string columns,
int offset,
int maxRecords,
ref int totalRecords
)
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 - offset
- Type: SystemInt32
Index of first record to get - maxRecords
- Type: SystemInt32
Maximum number of records to get. If maxRecords is zero or less, all records are returned (no paging is used) - totalRecords
- Type: SystemInt32
Returns total number of the records
Return Value
Type:
InfoDataSetForumPostInfoSee Also