SqlSecurityHelperCheckQuery Method |
Checks part of a query (or whole query) for malicious code. Returns TRUE if query contains just a SELECT statement.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 10.0.0
Syntax 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:
BooleanSee Also