Share via


TaxonomySession Constructor (SPSite)

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 _
)
'Usage
Dim site As SPSite

Dim instance As New TaxonomySession(site)
public TaxonomySession(
    SPSite site
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

This constructor does not trigger a cache update.

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