Click or drag to resize
SecurityHelperEscapeLikeQueryPatterns Method

Note: This API is now obsolete.

Escapes characters for query which use LIKE pattern.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
[ObsoleteAttribute("This method is obsolete use SqlHelper.EscapeLikeText instead.")]
public static string EscapeLikeQueryPatterns(
	string input,
	bool escapeUnderScore = true,
	bool escapePercentage = true,
	bool escapeSquareBrackets = true
)

Parameters

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

Return Value

Type: String
See Also