Operators.CompareObject(Object, Object, Boolean) 方法

定義

表示 Visual Basic 比較運算子。

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

public:
 static int CompareObject(System::Object ^ Left, System::Object ^ Right, bool TextCompare);
public static int CompareObject (object Left, object Right, bool TextCompare);
static member CompareObject : obj * obj * bool -> int
Public Shared Function CompareObject (Left As Object, Right As Object, TextCompare As Boolean) As Integer

參數

Left
Object

必要。 任何運算式。

Right
Object

必要。 任何運算式。

TextCompare
Boolean

必要。 True 表示要執行不區分大小寫的字串比較,否則為 False

傳回

條件
-1 Left 小於 Right
0 LeftRight 相等。
1 Left 大於 Right

備註

這個類別支援 Visual Basic 編譯程式,不適合直接從程式代碼使用。

適用於

另請參閱