Partilhar via


ManagedPropertyFilterGenerator.RefinementFilterCountReverseComparer.IComparer.Compare Method

Compares two specified refinement data elements based on the count of the resulting data returned by the refinement filter.

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.RefinementFilterCountReverseComparer
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 value of the left and right, as shown in the following table.

Value

Meaning

-1

left is greater than right.

0

left equals right.

1

left is less 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.RefinementFilterCountReverseComparer instance is cast to an IComparer interface.

See Also

Reference

ManagedPropertyFilterGenerator.RefinementFilterCountReverseComparer Class

ManagedPropertyFilterGenerator.RefinementFilterCountReverseComparer Members

Microsoft.Office.Server.Search.WebControls Namespace