ProjectPropertyComparator.Compare method (Int32, Int32)
Compares two integer values to identify their relative positions in the sort order.
Namespace: Microsoft.Office.Project.Server.Library
Assembly: Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)
Syntax
'Declaration
Public Shared Function Compare ( _
prop1 As Integer, _
prop2 As Integer _
) As Integer
'Usage
Dim prop1 As Integer
Dim prop2 As Integer
Dim returnValue As Integer
returnValue = ProjectPropertyComparator.Compare(prop1, _
prop2)
public static int Compare(
int prop1,
int prop2
)
Parameters
prop1
Type: System.Int32The first integer value to be compared.
prop2
Type: System.Int32The second integer value to be compared.
Return value
Type: System.Int32
Returns the positive difference between the parameter values if the first is a higher number than the second, returns the negative difference between the two parameter values if the first is a lower number than the second, or returns 0 if the two values are equal.
See also
Reference
ProjectPropertyComparator class