ProfileSubtypePropertyManager.OrderCompare 方法

比较两个配置文件子类型属性的显示顺序。

命名空间:  Microsoft.Office.Server.UserProfiles
程序集:  Microsoft.Office.Server.UserProfiles(位于 Microsoft.Office.Server.UserProfiles.dll 中)

语法

声明
Protected Overrides Function OrderCompare ( _
    propertyA As ProfileSubtypeProperty, _
    propertyB As ProfileSubtypeProperty _
) As Integer
用法
Dim propertyA As ProfileSubtypeProperty
Dim propertyB As ProfileSubtypeProperty
Dim returnValue As Integer

returnValue = Me.OrderCompare(propertyA, _
    propertyB)
protected override int OrderCompare(
    ProfileSubtypeProperty propertyA,
    ProfileSubtypeProperty propertyB
)

参数

返回值

类型:System.Int32

备注

如果propertyA在propertyB之前,则返回-1。如果这两个属性具有相同的位置,则返回 0。如果propertyB在propertyA之前,则返回 1。

另请参阅

引用

ProfileSubtypePropertyManager 类

ProfileSubtypePropertyManager 成员

Microsoft.Office.Server.UserProfiles 命名空间