DLStringComparer.Compare Method (String, String)

This member is reserved for internal use and is not intended to be used directly from your code.Compares two distribution list strings and returns an indication of their relative sort order.

Namespace:  Microsoft.Office.Server.WebControls
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Overrides Function Compare ( _
    x As String, _
    y As String _
) As Integer
'Usage
Dim instance As DLStringComparer
Dim x As String
Dim y As String
Dim returnValue As Integer

returnValue = instance.Compare(x, y)
public override int Compare(
    string x,
    string y
)

Parameters

  • x
    Type: System.String

    A distribution list sting to compare to y.

  • y
    Type: System.String

    A distribution list string to compare to x.

Return Value

Type: System.Int32

Value

Meaning

Less than zero

x is less than y.

-or-

x is null .

Zero

x is equal to y.

Greater than zero

x is greater than y.

-or-

y is null .

Implements

IComparer<T>.Compare(T, T)

Remarks

This override compares the hash codes that are generated from the first 30 characters of the distribution list strings of the two parameters.

See Also

Reference

DLStringComparer Class

DLStringComparer Members

Compare Overload

Microsoft.Office.Server.WebControls Namespace