StringType.StrLikeBinary(String, String) 方法

定義

比較參數 SourcePattern ,並使用二元比較,返回與運算 Like 符相同的結果。

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

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

參數

Source
String

必須的。 任何 String 表達式。

Pattern
String

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

傳回

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

備註

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

此方法與 相似 StrLike ,但總是執行大小寫區分的二進位比較。

適用於