Click or drag to resize
GeneralConnectionExecuteQuery Method (String, QueryDataParameters, QueryMacros, Int32, Int32, Int32)

Note: This API is now obsolete.

Executes query and returns result as a dataset.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
[ObsoleteAttribute("This methods is obsolete, use method ExecuteQuery(QueryParameters, ref totalRecords).")]
public virtual DataSet ExecuteQuery(
	string queryName,
	QueryDataParameters parameters,
	QueryMacros macros,
	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
macros
Type: CMS.DataEngineQueryMacros
Query expressions
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

Return Value

Type: DataSet
See Also