Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Compares two specified refinement data elements based on the filter display value as numbers.
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.RefinementFilterNumericComparer
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.RefinementFilterNumericComparer instance is cast to an IComparer interface.
See Also
Reference
ManagedPropertyFilterGenerator.RefinementFilterNumericComparer Class
ManagedPropertyFilterGenerator.RefinementFilterNumericComparer Members