| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As MailAddress Dim obj As Object Dim value As Integer value = instance.CompareTo(obj) | |
Parameters
- obj
- MailAddress to compare with.
Return Value
Negative if less than obj, 0 if equal, and positive if greater than obj.This method is used by the MailAddress.RemoveDuplicates method
This method takes O(1) time for MailAddress objects with an Address less than 40 characters in length (taking time proportional to length with longer MailAddress objects), and is speed-optimized to enable high-speed sorting of the MailAddresses collection.
This compares by domain first, then user.
Target Platforms: Microsoft .NET Framework 2.0