Partager via


ManagedPropertyFilterGenerator.RefinementFilterStringComparer.IComparer.Compare Method

Compares two specified refinement data elements based on the string format of the filter display name.

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

Syntax

'Declaration
Private Function Compare ( _
    left As Object, _
    right As Object _
) As Integer Implements IComparer.Compare
'Usage
Dim instance As ManagedPropertyFilterGenerator.RefinementFilterStringComparer
Dim left As Object
Dim right As Object
Dim returnValue As Integer

returnValue = CType(instance, IComparer).Compare(left, _
    right)
intIComparer.Compare(
    Object left,
    Object right
)

Parameters

Return Value

Type: System.Int32
A value that indicates the relative values of left and right, as shown in the following table.

Value

Meaning

-1

left is less than right.

0

left equals right.

1

left is greater than right.

Implements

IComparer.Compare(Object, Object)

Exceptions

Exception Condition
InvalidOperationException

Either left or right is null .

Remarks

This member is an explicit interface member implementation. It can be used only when the ManagedPropertyFilterGenerator.RefinementFilterStringComparer instance is cast to an IComparer interface.

See Also

Reference

ManagedPropertyFilterGenerator.RefinementFilterStringComparer Class

ManagedPropertyFilterGenerator.RefinementFilterStringComparer Members

Microsoft.Office.Server.Search.WebControls Namespace