Visual Basic (Declaration) | |
---|---|
Public Overridable Function CompareTo( _ ByVal obj As Object _ ) As Integer |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As EntityAspect Dim obj As Object Dim value As Integer value = instance.CompareTo(obj) |
Parameters
- obj
- Object to compare with this instance
This will compare Entities by EntityKey. Derived classes can override this implementation as needed to modify the default sort order of objects of this type.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family