Click or drag to resize
GeneralConnectionExecuteScalar Method (String, QueryDataParameters, QueryTypeEnum, Boolean)

Note: This API is now obsolete.

Runs the query.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
[ObsoleteAttribute("This methods is obsolete, use method ExecuteScalar(QueryParameters).")]
public virtual Object ExecuteScalar(
	string queryText,
	QueryDataParameters parameters,
	QueryTypeEnum queryType,
	bool transaction
)

Parameters

queryText
Type: SystemString
Query text
parameters
Type: CMS.DataEngineQueryDataParameters
Query parameters
queryType
Type: CMS.DataEngineQueryTypeEnum
Query type
transaction
Type: SystemBoolean
If true, connection uses transaction for the query

Return Value

Type: Object
See Also