SqlHelper EscapeLikeQueryPatterns Method Kentico 8.0 API Reference
Escapes characters for query which use LIKE pattern.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

input
Type: OnlineSystem String
Input text
escapeUnderScore (Optional)
Type: OnlineSystem Boolean
Indicates whether underscore character should be escaped
escapePercentage (Optional)
Type: OnlineSystem Boolean
Indicates whether percentage character should be escaped
escapeSquareBrackets (Optional)
Type: OnlineSystem Boolean
Indicates whether square brackets characters should be escaped

Return Value

Type: OnlineString
See Also