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
web
Type: Microsoft.SharePoint.SPWebThe SPWeb object for which the WebNavigationSettings object is initialized.
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.