StringType.StrCmp(String, String, Boolean) 方法

定義

比較兩個字串。

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

public:
 static int StrCmp(System::String ^ sLeft, System::String ^ sRight, bool TextCompare);
public static int StrCmp(string sLeft, string sRight, bool TextCompare);
static member StrCmp : string * string * bool -> int
Public Function StrCmp (sLeft As String, sRight As String, TextCompare As Boolean) As Integer
Public Shared Function StrCmp (sLeft As String, sRight As String, TextCompare As Boolean) As Integer

參數

sLeft
String

必須的。 用來比較 sRight的字串。

sRight
String

必須的。 用來比較 sLeft的字串。

TextCompare
Boolean

必須的。 True 進行大小寫不區分的比較;否則 False

傳回

價值 條件
兩條弦是相等的。
小於零 sLeft 小於 sRight
大於零 sLeft 大於 sRight

備註

這門課支援 Visual Basic 編譯器,並非直接從你的程式碼中使用。

適用於