Export (0) Print
Expand All

NavigationComparer class

Implements the generic IComparer interface that can sort PortalSiteMapNode objects for a given locale by title or date, and by ascending or descending order.

System.Object
  Microsoft.SharePoint.Publishing.Navigation.NavigationComparer

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

[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class NavigationComparer : IComparer<PortalSiteMapNode>

Using this class through the IComparer interface might not result in the same sort order as the sort order that results from using the SortNavigationNodes method. The SortNavigationNodes method is used to sort child collections when necessary.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft