SqlHelpers.TranslateVBLikePattern Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Translates a search pattern for the Visual Basic Like operator to a search pattern for the SQL Server LIKE operator.
Assembly: System.Data.Linq (in System.Data.Linq.dll)
'Declaration Public Shared Function TranslateVBLikePattern ( _ pattern As String, _ escape As Char _ ) As String
Parameters
- pattern
- Type: System.String
The Visual Basic Like search pattern to translate to a SQL Server LIKE search pattern.
- escape
- Type: System.Char
The character to use to escape special SQL characters or the escape character itself.
Return Value
Type: System.StringA search pattern for the SQL Server LIKE operator that corresponds to the specified Visual Basic Like search pattern.
Show: