TaxonomyNavigation.CreateTaxonomySessionForEdit method
Constructs a TaxonomySession object to be used for editing navigation term sets.
Namespace: Microsoft.SharePoint.Publishing.Navigation
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Shared Function CreateTaxonomySessionForEdit ( _
contextWeb As SPWeb _
) As TaxonomySession
'Usage
Dim contextWeb As SPWeb
Dim returnValue As TaxonomySession
returnValue = TaxonomyNavigation.CreateTaxonomySessionForEdit(contextWeb)
public static TaxonomySession CreateTaxonomySessionForEdit(
SPWeb contextWeb
)
Parameters
- contextWeb
Type: Microsoft.SharePoint.SPWeb
Return value
Type: Microsoft.SharePoint.Taxonomy.TaxonomySession
A TaxonomySession object.
Remarks
Use this method when creating a TaxonomySession object that will be used to update a navigation term set.
The publishing "Pages" library is used as the context for site collection group permissions, and the updateCache parameter of the TaxonomySession method is set to true to prepare for an editing operation. This method also configures the WorkingLanguage property for each TermStore object that uses the locale ID (LCID) that is obtained from the GetNavigationLcidForWeb(SPWeb) method.
See also
Reference
Microsoft.SharePoint.Publishing.Navigation namespace
Microsoft.SharePoint.Publishing.Navigation.NavigationTermSet