Click or drag to resize
SqlHelperGetSafeQueryString Method (String, Boolean)
Returns safe sql query string - escapes apostrophes and optionally escapes wildcard characters _, %, [].

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