ProjectPropertyComparator.Compare method (DateTime, DateTime, ProjectPropertyCompareOperator)
Compares two DateTime values.
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 DateTime, _
prop2 As DateTime, _
op As ProjectPropertyCompareOperator _
) As Boolean
'Usage
Dim prop1 As DateTime
Dim prop2 As DateTime
Dim op As ProjectPropertyCompareOperator
Dim returnValue As Boolean
returnValue = ProjectPropertyComparator.Compare(prop1, _
prop2, op)
public static bool Compare(
DateTime prop1,
DateTime prop2,
ProjectPropertyCompareOperator op
)
Parameters
prop1
Type: System.DateTimeThe first DateTime value to be compared.
prop2
Type: System.DateTimeThe second DateTime value to be compared.
op
Type: Microsoft.Office.Project.Server.Library.ProjectPropertyCompareOperatorThe comparison operator.
Return value
Type: System.Boolean
True if the DateTime values are equal; otherwise, False.
See also
Reference
ProjectPropertyComparator class