Share via


ProfileTypePropertyManager.OrderCompare method

Compares the display order of two profile type properties.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Protected Overrides Function OrderCompare ( _
    propertyA As ProfileTypeProperty, _
    propertyB As ProfileTypeProperty _
) As Integer
'Usage
Dim propertyA As ProfileTypeProperty
Dim propertyB As ProfileTypeProperty
Dim returnValue As Integer

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

Parameters

Return value

Type: System.Int32

Remarks

Returns -1 if propertyA precedes propertyB. Returns 0 if both properties have the same position. Returns 1 if propertyB precedes propertyA.

See also

Reference

ProfileTypePropertyManager class

ProfileTypePropertyManager members

Microsoft.Office.Server.UserProfiles namespace