Click or drag to resize
TreeProviderExecuteQuery Method (String, QueryDataParameters, String, String, Int32, String, Int32, Int32, Int32)
Executes query and returns result as a dataset.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax
C#
public TreeNodeDataSet ExecuteQuery(
	string queryName,
	QueryDataParameters parameters,
	string where,
	string orderBy,
	int topN,
	string columns,
	int offset,
	int maxRecords,
	ref int totalRecords
)

Parameters

queryName
Type: SystemString
Name of the query in format application.class.queryname
parameters
Type: CMS.DataEngineQueryDataParameters
Query parameters
where
Type: SystemString
Where condition
orderBy
Type: SystemString
Order by clause
topN
Type: SystemInt32
Limits the number of returned items.
columns
Type: SystemString
Columns that the result will contain.
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 records count.

Return Value

Type: TreeNodeDataSet
See Also