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
)

参数

返回值

类型:System.Boolean
True如果DateTime的值相等 ;否则为False。

另请参阅

引用

ProjectPropertyComparator 类

ProjectPropertyComparator 成员

Compare 重载

Microsoft.Office.Project.Server.Library 命名空间