Share via


SqlHelpers.GetStringEndsWithPattern(String, Char) 方法

定義

建立搜尋模式字串,其中指定的文字之前 (而非之後) 可以有其他文字。

此 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

要插入搜尋模式字串中的字串。

escape
Char

用來逸出萬用字元的字元。

傳回

搜尋模式字串,其中包含 '%' 字元,後面是指定的字串。

適用於