SqlHelpers.GetStringEndsWithPattern(String, Char) 方法
定义
创建一个搜索模式字符串,其中,指定文本可包含其前面的其他文本,但不能包含其后面的其他文本。Creates a search pattern string where the specified text can have other text before it but not following it.
此 API 支持产品基础结构,不能在代码中直接使用。
public:
static System::String ^ GetStringEndsWithPattern(System::String ^ text, char escape);
public static string GetStringEndsWithPattern (string text, char escape);
static member GetStringEndsWithPattern : string * char -> string
Public Shared Function GetStringEndsWithPattern (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.
返回
一个搜索模式字符串,其中包含“%”字符及其后面的指定字符串。A search pattern string that contains the '%' character followed by the specified string.