Breyta

Deila með


SqlHelpers.TranslateVBLikePattern(String, Char) Method

Definition

Translates a search pattern for the Visual Basic Like operator to a search pattern for the SQL Server LIKE operator.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static System::String ^ TranslateVBLikePattern(System::String ^ pattern, char escape);
public static string TranslateVBLikePattern (string pattern, char escape);
static member TranslateVBLikePattern : string * char -> string
Public Shared Function TranslateVBLikePattern (pattern As String, escape As Char) As String

Parameters

pattern
String

The Visual Basic Like search pattern to translate to a SQL Server LIKE search pattern.

escape
Char

The character to use to escape special SQL characters or the escape character itself.

Returns

A search pattern for the SQL Server LIKE operator that corresponds to the specified Visual Basic Like search pattern.

Applies to