TaxonomySession constructor (SPSite)
Initializes a new instance of 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
site
Type: Microsoft.SharePoint.SPSiteAn SPSite object.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The site should not be a null reference (Nothing in Visual Basic). |
Remarks
The constructor does not trigger a cache update.
Permission checks are performed on the site to ensure that sufficient permissions exist for editing the term collection of the SPSite object.