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 numeric 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.RefinementFilterNumericReverseComparer
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 value of the 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.RefinementFilterNumericReverseComparer instance is cast to an IComparer interface.
See Also
Reference
ManagedPropertyFilterGenerator.RefinementFilterNumericReverseComparer Class
ManagedPropertyFilterGenerator.RefinementFilterNumericReverseComparer Members