Share via


DefaultElementComparer.Compare method

Compares two objects and returns an indication of their relative values.

Namespace:  Microsoft.PerformancePoint.Scorecards
Assembly:  Microsoft.PerformancePoint.Scorecards.Client (in Microsoft.PerformancePoint.Scorecards.Client.dll)

Syntax

'Declaration
Public Function Compare ( _
    obj1 As Object, _
    obj2 As Object _
) As Integer
'Usage
Dim instance As DefaultElementComparer
Dim obj1 As Object
Dim obj2 As Object
Dim returnValue As Integer

returnValue = instance.Compare(obj1, obj2)
public int Compare(
    Object obj1,
    Object obj2
)

Parameters

Return value

Type: System.Int32
A signed number indicating the relative values of the objects. Less than zero indicates that obj1 is less than obj2, zero indicates that obj1 is equal to obj2, and greater than zero indicates that obj1 is greater than obj2.

Implements

IComparer.Compare(Object, Object)

See also

Reference

DefaultElementComparer class

DefaultElementComparer members

Microsoft.PerformancePoint.Scorecards namespace