Επεξεργασία

Κοινή χρήση μέσω


SqlHelpers.GetStringContainsPattern(String, Char) Method

Definition

Creates a search pattern string where the specified text can have other text before and following it.

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

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

Parameters

text
String

The string to insert into the search pattern string.

escape
Char

The character to use to escape wildcard characters.

Returns

A search pattern string that contains the specified string and the '%' character before and after it.

Applies to