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
x
Type: Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapNodeThe first PortalSiteMapNode to compare.
y
Type: Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapNodeThe second PortalSiteMapNode to compare.
Return Value
Type: System.Int32