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

  • updateCache
    Type: System.Boolean

    Whether 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.

See Also

Reference

TaxonomySession Class

TaxonomySession Members

TaxonomySession Overload

Microsoft.SharePoint.Taxonomy Namespace