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