Click or drag to resize
SecurityHelperGetSafeQueryString Method (String, Boolean)

Note: This API is now obsolete.

Returns safe sql query string - escapes apostrophes and optionally escapes wildcard characters _, %, [].

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
[ObsoleteAttribute("This method is obsolete use SqlHelper.EscapeQuotes and SqlHelper.EscapeLikeText instead.")]
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