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)
Syntax
'Declaration
Public Function GetSiteCollectionGroup ( _
currentSite As SPSite _
) As Group
'Usage
Dim instance As TermStore
Dim currentSite As SPSite
Dim returnValue As Group
returnValue = instance.GetSiteCollectionGroup(currentSite)
public Group GetSiteCollectionGroup(
SPSite currentSite
)
Parameters
currentSite
Type: Microsoft.SharePoint.SPSiteThe site collection containing the group to retrieve.
Return Value
Type: Microsoft.SharePoint.Taxonomy.Group
The group related to the specified site collection.
Remarks
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.