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)
Syntax
'Declaration
Public Sub New ( _
site As SPSite, _
updateCache As Boolean _
)
'Usage
Dim site As SPSite
Dim updateCache As Boolean
Dim instance As New TaxonomySession(site, updateCache)
public TaxonomySession(
SPSite site,
bool updateCache
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteA SPSite object
updateCache
Type: System.BooleanWhether a cache update should happen
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The site should not be a null reference (Nothing in Visual Basic) |
Remarks
Permission checks are performed on the site to ensure sufficient permissions for editing the term collection of the SPSite.