Share via


ProfileSubtypePropertyManager.OrderCompare method

Compares the display order of two profile subtype 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 ProfileSubtypeProperty, _
    propertyB As ProfileSubtypeProperty _
) As Integer
'Usage
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
)

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

ProfileSubtypePropertyManager class

ProfileSubtypePropertyManager members

Microsoft.Office.Server.UserProfiles namespace