TaxonomySession Constructor (SPSite, Boolean)

Creates a TaxonomySession object that is scoped to a specific SPSite object.

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)

public TaxonomySession(
	SPSite site,
	bool updateCache
)

Parameters

site
Type: Microsoft.SharePoint.SPSite

A SPSite object

updateCache
Type: System.Boolean

Whether a cache update should happen

ExceptionCondition
ArgumentNullException

The site should not be a null reference (Nothing in Visual Basic)

Permission checks are performed on the site to ensure sufficient permissions for editing the term collection of the SPSite.

Show: