TreeProvider ExecuteQuery Method (String, QueryDataParameters, String, String, Int32, String, Int32, Int32, Int32 )Kentico 8.1 API Reference
Executes query and returns result as a dataset.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

queryName
Type: OnlineSystem String
Name of the query in format application.class.queryname
parameters
Type: CMS.DataEngine QueryDataParameters
Query parameters
where
Type: OnlineSystem String
Where condition
orderBy
Type: OnlineSystem String
Order by clause
topN
Type: OnlineSystem Int32
Limits the number of returned items.
columns
Type: OnlineSystem String
Columns that the result will contain.
offset
Type: OnlineSystem Int32
Index of first record to get
maxRecords
Type: OnlineSystem Int32
Maximum number of records to get. If maxRecords is zero or less, all records are returned (no paging is used)
totalRecords
Type: OnlineSystem Int32 
Returns total records count.

Return Value

Type: TreeNodeDataSet
See Also