StringType.StrLikeText(String, String) 方法

定義

比較參數 SourcePattern ,並以文字比較回傳與運算 Like 元相同的結果。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 static bool StrLikeText(System::String ^ Source, System::String ^ Pattern);
public static bool StrLikeText(string Source, string Pattern);
static member StrLikeText : string * string -> bool
Public Function StrLikeText (Source As String, Pattern As String) As Boolean
Public Shared Function StrLikeText (Source As String, Pattern As String) As Boolean

參數

Source
String

必須的。 任何 String 表達式。

Pattern
String

必須的。 任何 String 符合 Like Operator 中描述的模式匹配慣例的表達式。

傳回

一個 Boolean 表示字串是否符合該模式的值。 若字串中的值滿足模式所包含的模式,結果為 True。 若字串不滿足該模式,結果為 False。 若字串與模式皆為空字串,則結果為 True

備註

此方法比較參數 SourcePattern ,並回傳與 類樣運算子相同的結果。 結果是一個 Boolean 表示字串是否符合該模式的值。

此方法與 類似 StrLike ,但總是根據系統值決定 LocaleID 的大小寫不區分文字排序順序進行比較。

適用於