TermStore.GetSiteCollectionGroup Method

Gets the group related to a specified site collection.

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

public Group GetSiteCollectionGroup(
	SPSite currentSite


Type: Microsoft.SharePoint.SPSite

The site collection containing the group to retrieve.

Return Value

Type: Microsoft.SharePoint.Taxonomy.Group
The group related to the specified site collection.

This method returns the group that contains the specified site collection if the group exists; otherwise, this method creates a new group for the site collection.