Click or drag to resize
ConnectionHelperExecuteScalar Method (String, QueryDataParameters, QueryMacros)
Executes query and returns result as a a single value.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 9.0.0
Syntax
C#
public static Object ExecuteScalar(
	string queryName,
	QueryDataParameters parameters = null,
	QueryMacros macros = null
)

Parameters

queryName
Type: SystemString
Name of the query in format application.class.queryname
parameters (Optional)
Type: CMS.DataEngineQueryDataParameters
Query parameters
macros (Optional)
Type: CMS.DataEngineQueryMacros
Query expressions

Return Value

Type: Object
See Also