ObjectType.ObjTst(Object, Object, Boolean) Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs binary or text string comparison when given two objects.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
 static int ObjTst(System::Object ^ o1, System::Object ^ o2, bool TextCompare);public static int ObjTst(object? o1, object? o2, bool TextCompare);public static int ObjTst(object o1, object o2, bool TextCompare);static member ObjTst : obj * obj * bool -> intPublic Shared Function ObjTst (o1 As Object, o2 As Object, TextCompare As Boolean) As IntegerParameters
- o1
- Object
Required. Any expression.
- o2
- Object
Required. Any expression.
- TextCompare
- Boolean
Required. True to perform a case-insensitive string comparison; otherwise, False.
Returns
| Value | Condition | 
|---|---|
| -1 | o1is less thano2. | 
| 0 | o1is equal too2. | 
| 1 | o1is greater thano2. | 
Remarks
This class supports the Visual Basic compiler and is not intended to be used directly from your code.