Compares the current instance with another object of the same type.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function CompareTo( _
ByVal obj As Object _
) As Integer |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As Mailbox
Dim obj As Object
Dim value As Integer
value = instance.CompareTo(obj) |
Parameters
- obj
- An object to compare with this instance.
Return Value
A 32-bit signed integer that indicates the relative order of the comparands. The return value has these meanings:
| Value |
Meaning |
| Less than zero |
This instance is less than obj. |
| Zero |
This instance is equal to obj. |
| Greater than zero |
This instance is greater than obj. |
Requirements
Target Platforms: Microsoft .NET Framework 2.0
See Also