Share via


ProjectPropertyComparator.Compare method (Boolean, Boolean)

Compares two Boolean 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 Boolean, _
    prop2 As Boolean _
) As Integer
'Usage
Dim prop1 As Boolean
Dim prop2 As Boolean
Dim returnValue As Integer

returnValue = ProjectPropertyComparator.Compare(prop1, _
    prop2)
public static int Compare(
    bool prop1,
    bool prop2
)

Parameters

Return value

Type: System.Int32
Returns "-1" if the first parameter value is False and the second is True, returns "1" if the first parameter value is True and the second is False, or returns "0" if both are True or both are False.

See also

Reference

ProjectPropertyComparator class

ProjectPropertyComparator members

Compare overload

Microsoft.Office.Project.Server.Library namespace