TermStore.GetSiteCollectionGroup method

Returns the associated site collection group for the SPSite.

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

Syntax

'Declaration
Public Function GetSiteCollectionGroup ( _
    currentSite As Site, _
    createIfMissing As Boolean _
) As TermGroup
'Usage
Dim instance As TermStore
Dim currentSite As Site
Dim createIfMissing As Boolean
Dim returnValue As TermGroup

returnValue = instance.GetSiteCollectionGroup(currentSite, _
    createIfMissing)
public TermGroup GetSiteCollectionGroup(
    Site currentSite,
    bool createIfMissing
)

Parameters

  • createIfMissing
    Type: System.Boolean

    Indicates whether to create a new TermGroup object if one does not exist yet for the specified site collection.

Return value

Type: Microsoft.SharePoint.Client.Taxonomy.TermGroup

See also

Reference

TermStore class

TermStore members

Microsoft.SharePoint.Client.Taxonomy namespace