SqlHelpers.GetStringContainsPattern(String, Char) 方法

定义

创建一个搜索模式字符串,其中,指定文本可包含其前后的其他文本。Creates a search pattern string where the specified text can have other text before and following it.

此 API 支持产品基础结构,不能在代码中直接使用。

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

参数

text
String

要插入到搜索模式字符串中的字符串。The string to insert into the search pattern string.

escape
Char

用于转义通配符的字符。The character to use to escape wildcard characters.

返回

String

一个搜索模式字符串,其中包含指定字符串及其前后的“%”字符。A search pattern string that contains the specified string and the '%' character before and after it.

适用于