TermStore.GetSiteCollectionGroup TermStore.GetSiteCollectionGroup TermStore.GetSiteCollectionGroup Method

Definition

Overloads

GetSiteCollectionGroup(SPSite) GetSiteCollectionGroup(SPSite) GetSiteCollectionGroup(SPSite)

Returns associated site collection group for the SPSite object.

GetSiteCollectionGroup(SPSite, Boolean) GetSiteCollectionGroup(SPSite, Boolean) GetSiteCollectionGroup(SPSite, Boolean)

Returns the associated site collection group for the SPSite.

GetSiteCollectionGroup(SPSite) GetSiteCollectionGroup(SPSite) GetSiteCollectionGroup(SPSite)

Returns associated site collection group for the SPSite object.

public:
 Microsoft::SharePoint::Taxonomy::Group ^ GetSiteCollectionGroup(Microsoft::SharePoint::SPSite ^ currentSite);
public Microsoft.SharePoint.Taxonomy.Group GetSiteCollectionGroup (Microsoft.SharePoint.SPSite currentSite);
Public Function GetSiteCollectionGroup (currentSite As SPSite) As Group
Parameters
currentSite
SPSite SPSite SPSite

The site collection containing the group to retrieve.

Returns

The group related to the specified site collection.

Remarks

If the associated site collection group for the SPSite object has not been created, then the GetSiteCollectionGroup(SPSite) method will create it.

GetSiteCollectionGroup(SPSite, Boolean) GetSiteCollectionGroup(SPSite, Boolean) GetSiteCollectionGroup(SPSite, Boolean)

Returns the associated site collection group for the SPSite.

public:
 Microsoft::SharePoint::Taxonomy::Group ^ GetSiteCollectionGroup(Microsoft::SharePoint::SPSite ^ currentSite, bool createIfMissing);
[Microsoft.SharePoint.Client.ClientCallableMethod(ClientLibraryTargets=Microsoft.SharePoint.Client.ClientLibraryTargets.NonRESTful, ReturnObjectIdentity=true)]
public Microsoft.SharePoint.Taxonomy.Group GetSiteCollectionGroup (Microsoft.SharePoint.SPSite currentSite, bool createIfMissing);
Public Function GetSiteCollectionGroup (currentSite As SPSite, createIfMissing As Boolean) As Group
Parameters
currentSite
SPSite SPSite SPSite
createIfMissing
Boolean Boolean Boolean
Returns

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.

Applies to