Share via


TableOfContentsWebPart.SortWebsBy property

Gets or sets an enumeration value that specifies the sort order for the Web sites.

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

Syntax

'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(False)> _
Public Property SortWebsBy As TableOfContentsWebPart.NavigationSortOption
    Get
    Set
'Usage
Dim instance As TableOfContentsWebPart
Dim value As TableOfContentsWebPart.NavigationSortOption

value = instance.SortWebsBy

instance.SortWebsBy = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(false)]
public TableOfContentsWebPart.NavigationSortOption SortWebsBy { get; set; }

Property value

Type: Microsoft.SharePoint.Publishing.WebControls.TableOfContentsWebPart.NavigationSortOption
The default value for this property is NavigationOrder.

Remarks

Web sites can be sorted by NavigationOrder, in which case the navigation determines the order, or they can be sorted manually by the TableOfContentsWebPart.NavigationSortOption enumeration.

See also

Reference

TableOfContentsWebPart class

TableOfContentsWebPart members

Microsoft.SharePoint.Publishing.WebControls namespace