Share via


NavigationComparer.Compare Method

Compares two PortalSiteMapNode objects in accordance with the IComparer interface, based on the configuration.

Namespace:  Microsoft.SharePoint.Publishing.Navigation
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Function Compare ( _
    x As PortalSiteMapNode, _
    y As PortalSiteMapNode _
) As Integer
'Usage
Dim instance As NavigationComparer
Dim x As PortalSiteMapNode
Dim y As PortalSiteMapNode
Dim returnValue As Integer

returnValue = instance.Compare(x, y)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public int Compare(
    PortalSiteMapNode x,
    PortalSiteMapNode y
)

Parameters

Return Value

Type: System.Int32

Implements

IComparer<T>.Compare(T, T)

See Also

Reference

NavigationComparer Class

NavigationComparer Members

Microsoft.SharePoint.Publishing.Navigation Namespace

NavigationComparer