TermStore.GetSiteCollectionGroup method (SPSite, Boolean)
Returns the associated site collection group for the SPSite.
Namespace: Microsoft.SharePoint.Taxonomy
Assembly: Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)
Syntax
'Declaration
Public Function GetSiteCollectionGroup ( _
currentSite As SPSite, _
createIfMissing As Boolean _
) As Group
'Usage
Dim instance As TermStore
Dim currentSite As SPSite
Dim createIfMissing As Boolean
Dim returnValue As Group
returnValue = instance.GetSiteCollectionGroup(currentSite, _
createIfMissing)
public Group GetSiteCollectionGroup(
SPSite currentSite,
bool createIfMissing
)
Parameters
- currentSite
Type: Microsoft.SharePoint.SPSite
- createIfMissing
Type: System.Boolean
Return value
Type: Microsoft.SharePoint.Taxonomy.Group
Remarks
If a site collection group has not been created, then by default this method will create it. To return a null reference (Nothing in Visual Basic) instead, specify createIfMissing=false.