Click or drag to resize
SqlSecurityHelperCheckQuery Method
Checks part of a query (or whole query) for malicious code. Returns TRUE if query contains just a SELECT statement.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 10.0.0
Syntax
C#
public static bool CheckQuery(
	string query,
	QueryScopeEnum scope
)

Parameters

query
Type: SystemString
Part of a query or query.
scope
Type: CMS.DataEngineQueryScopeEnum
Defines scope where the specified part of a query is used.

Return Value

Type: Boolean
See Also