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
- propertyA
Type: Microsoft.Office.Server.UserProfiles.ProfileTypeProperty
- propertyB
Type: Microsoft.Office.Server.UserProfiles.ProfileTypeProperty
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