ProjectPropertyComparator.Compare 方法 (DateTime, DateTime, ProjectPropertyCompareOperator)
比较两个DateTime值。
命名空间: Microsoft.Office.Project.Server.Library
程序集: Microsoft.Office.Project.Server.Library(位于 Microsoft.Office.Project.Server.Library.dll 中)
语法
声明
Public Shared Function Compare ( _
prop1 As DateTime, _
prop2 As DateTime, _
op As ProjectPropertyCompareOperator _
) As Boolean
用法
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
)
参数
prop1
类型:System.DateTime要比较的第一个DateTime值。
prop2
类型:System.DateTime要比较的第二个DateTime值。
返回值
类型:System.Boolean
True如果DateTime的值相等 ;否则为False。