WebNavigationSettings.Update method (TaxonomySession)
Writes new navigation settings to the SPWeb object that was passed to the WebNavigationSettings(SPWeb)constructor, possibly also updating any associated NavigationTermSet objects.
Namespace: Microsoft.SharePoint.Publishing.Navigation
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Sub Update ( _
taxonomySession As TaxonomySession _
)
'Usage
Dim instance As WebNavigationSettings
Dim taxonomySession As TaxonomySession
instance.Update(taxonomySession)
public void Update(
TaxonomySession taxonomySession
)
Parameters
- taxonomySession
Type: Microsoft.SharePoint.Taxonomy.TaxonomySession
Remarks
If managed navigation is being enabled or disabled, or a different NavigationTermSet object has been specified, then the affected TermSet objects are also updated to indicate whether they are attached to the referencing SPWeb object. For newly selected term sets, the IsNavigationTermSet flag will be set to true, and the AvailableForTagging() flag will be set to false.
If the optional TaxonomySession parameter is omitted, then a new TaxonomySession object is automatically constructed. Automatically constructing the TaxonomySession object may increase the likelihood of save conflict errors; for example, if other TaxonomySession objects are simultaneously accessing the same TermSet.