Click or drag to resize
SqlHelperEscapeLikeQueryPatterns Method
Escapes characters for query which use LIKE pattern.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
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