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 Decimal 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 Decimal, _
prop2 As Decimal _
) As Integer
'Usage
Dim prop1 As Decimal
Dim prop2 As Decimal
Dim returnValue As Integer
returnValue = ProjectPropertyComparator.Compare(prop1, _
prop2)
public static int Compare(
decimal prop1,
decimal prop2
)
Parameters
prop1
Type: System.DecimalThe first Decimal value to be compared.
prop2
Type: System.DecimalThe second Decimal 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. The difference is expressed as an integer.
See also
Reference
ProjectPropertyComparator class