TermStore.GetSiteCollectionGroup Method

Definition

Overloads

GetSiteCollectionGroup(SPSite)

Returns associated site collection group for the SPSite object.

GetSiteCollectionGroup(SPSite, Boolean)

Returns the associated site collection group for the 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);
member this.GetSiteCollectionGroup : Microsoft.SharePoint.SPSite -> Microsoft.SharePoint.Taxonomy.Group
Public Function GetSiteCollectionGroup (currentSite As SPSite) As Group

Parameters

currentSite
SPSite

The site collection containing the group to retrieve.

Returns

Group

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.

Applies to

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);
member this.GetSiteCollectionGroup : Microsoft.SharePoint.SPSite * bool -> Microsoft.SharePoint.Taxonomy.Group
Public Function GetSiteCollectionGroup (currentSite As SPSite, createIfMissing As Boolean) As Group

Parameters

currentSite
SPSite
createIfMissing
Boolean

Returns

Group
Attributes
ClientCallableMethodAttribute

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