Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CompareObject Method

Operators.CompareObject Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Represents Visual Basic comparison operators.

Namespace:  Microsoft.VisualBasic.CompilerServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

'Declaration
Public Shared Function CompareObject ( _
	Left As Object, _
	Right As Object, _
	TextCompare As Boolean _
) As Integer

Parameters

Left
Type: System.Object

Required. Any expression.

Right
Type: System.Object

Required. Any expression.

TextCompare
Type: System.Boolean

Required. True to perform a case-insensitive string comparison; otherwise, False.

Return Value

Type: System.Int32

Value

Condition

-1

Left is less than Right.

0

Left and Right are equal.

1

Left is greater than Right.

This class supports the Visual Basic compiler and is not intended to be used directly from your code.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft