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 -> int
Public Shared Function ObjTst (o1 As Object, o2 As Object, TextCompare As Boolean) As Integer
Parameters
- 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 |
o1 is less than o2 .
|
0 |
o1 is equal to o2 .
|
1 |
o1 is greater than o2 .
|
Remarks
This class supports the Visual Basic compiler and is not intended to be used directly from your code.
Applies to
See also
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for