ManagedPropertyFilterGenerator.RefinementFilterCountComparer.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.RefinementFilterCountComparer
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
left
Type: System.ObjectThe first object to compare.
right
Type: System.ObjectThe second object to compare.
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.RefinementFilterCountComparer instance is cast to an IComparer interface.
See Also
Reference
ManagedPropertyFilterGenerator.RefinementFilterCountComparer Class
ManagedPropertyFilterGenerator.RefinementFilterCountComparer Members