Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetSiteCollectionGroup method (SPSite, Boolean)
Collapse the table of content
Expand the table of content

TermStore.GetSiteCollectionGroup method (SPSite, Boolean)

SharePoint 2013

Returns the associated site collection group for the SPSite.

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

public Group GetSiteCollectionGroup(
	SPSite currentSite,
	bool createIfMissing
)

Parameters

currentSite
Type: Microsoft.SharePoint.SPSite
createIfMissing
Type: System.Boolean

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.

Show:
© 2015 Microsoft