PortalSiteMapProvider.Version property

Gets or sets the version of the PortalSiteMapProvider object.

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

public int Version { get; set; }

Property value

Type: System.Int32
The version of the PortalSiteMapProvider object.

This setting affects three of the provider's default settings. A value of 13 or less will give behavior consistent with Microsoft Office SharePoint Server 2007. A value for 14 or higher causes the following changes:

  1. DynamicChildLimit defaults to 0, rather than 50

  1. RequireUniqueKeysForNodes defaults to true, rather than false

  1. CurrentNode returns the current page, even if the web does not include pages in navigation

Show: