SqlHelperGetSafeQueryString Method (String, Boolean) |
Returns safe sql query string - escapes apostrophes and optionally escapes wildcard characters _, %, [].
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax public static string GetSafeQueryString(
string input,
bool escapeWildcards
)
Parameters
- input
- Type: SystemString
String to escape - escapeWildcards
- Type: SystemBoolean
Determines whether the wildcards characters should be escaped
Return Value
Type:
StringSee Also