Share via


WebNavigationSettings constructor

Initializes an instance of the WebNavigationSettings object for the purpose of saving changes to the navigation settings..

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

Syntax

'Declaration
Public Sub New ( _
    web As SPWeb _
)
'Usage
Dim web As SPWeb

Dim instance As New WebNavigationSettings(web)
public WebNavigationSettings(
    SPWeb web
)

Parameters

Remarks

This constructor should only be used to create an instance of the WebNavigationSettings class for the purpose of modifying the settings. If read-only access is needed, it is better to use the GetWebNavigationSettings(SPWeb) method. GetWebNavigationSettings(Microsoft.SharePoint.SPWeb) fetches a read-only object from the taxonomy navigation cache, avoiding the overhead of querying the SQL database and parsing the XML string.

See also

Reference

WebNavigationSettings class

WebNavigationSettings members

Microsoft.SharePoint.Publishing.Navigation namespace