ProjectPropertyComparator.Compare 方法 (Int32, Int32)
比较两个整数值,以确定其在排序顺序中的相对位置。
命名空间: Microsoft.Office.Project.Server.Library
程序集: Microsoft.Office.Project.Server.Library(位于 Microsoft.Office.Project.Server.Library.dll 中)
语法
声明
Public Shared Function Compare ( _
prop1 As Integer, _
prop2 As Integer _
) As Integer
用法
Dim prop1 As Integer
Dim prop2 As Integer
Dim returnValue As Integer
returnValue = ProjectPropertyComparator.Compare(prop1, _
prop2)
public static int Compare(
int prop1,
int prop2
)
参数
prop1
类型:System.Int32第一个要比较的整数值。
prop2
类型:System.Int32第二个要比较的整数值。
返回值
类型:System.Int32
返回参数值的正差额如果第一种是第二个更高的数值返回两个参数值之间的负差异如果第一个是第二个较小的数字,或如果两个值相等,则返回 0。