다음을 통해 공유


GridSerializer.DefaultCompare Method

Implements a default comparison of two objects by using their IComparable implementations.

Namespace:  Microsoft.SharePoint.JSGrid
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function DefaultCompare ( _
    left As Object, _
    right As Object, _
    strict As Boolean _
) As Integer
'Usage
Dim left As Object
Dim right As Object
Dim strict As Boolean
Dim returnValue As Integer

returnValue = GridSerializer.DefaultCompare(left, _
    right, strict)
public static int DefaultCompare(
    Object left,
    Object right,
    bool strict
)

Parameters

  • left
    Type: System.Object

    The first of two objects to be compared.

  • right
    Type: System.Object

    The second of two objects to be compared.

  • strict
    Type: System.Boolean

    This parameter is ignored. It must be present so that this method matches the ValueComparer delegate signature.

Return Value

Type: System.Int32
Int32 is less than zero if the left operand is less than the right operand, zero if the operands are equal, and positive if the left is greater than the right.

Exceptions

Exception Condition
Exception

The operands are different types.

See Also

Reference

GridSerializer Class

GridSerializer Members

Microsoft.SharePoint.JSGrid Namespace