Share via


PortalNavigation.AutomaticSortingMethod property

Controls the property to use when automatically sorting navigation items owned by this site.

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

Syntax

'Declaration
Public Property AutomaticSortingMethod As AutomaticSortingMethod
    Get
    Set
'Usage
Dim instance As PortalNavigation
Dim value As AutomaticSortingMethod

value = instance.AutomaticSortingMethod

instance.AutomaticSortingMethod = value
public AutomaticSortingMethod AutomaticSortingMethod { get; set; }

Property value

Type: Microsoft.SharePoint.Publishing.AutomaticSortingMethod
Returns AutomaticSortingMethod.

Remarks

This property is useful only when PortalNavigation.OrderingMethod is set to one of the automatic sorting options.To save changes after setting this property, call the PublishingWeb.Update method.

See also

Reference

PortalNavigation class

PortalNavigation members

Microsoft.SharePoint.Publishing.Navigation namespace

OrderingMethod