다음을 통해 공유


Group.AddSiteCollectionAccess Method

Adds a site collection to have access to its local site collection group.

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

Syntax

'Declaration
Public Sub AddSiteCollectionAccess ( _
    siteCollectionId As Guid _
)
'Usage
Dim instance As Group
Dim siteCollectionId As Guid

instance.AddSiteCollectionAccess(siteCollectionId)
public void AddSiteCollectionAccess(
    Guid siteCollectionId
)

Parameters

  • siteCollectionId
    Type: System.Guid

    A P:Microsoft.SharePoint.SPSite.ID property for the SPSite object that should be given access to the group.

Remarks

Add a site collection to a group to enable it to access the local group. This method adds the requested site collection to the list that can access the gorup. If the group is not a site collection group, this method has no effect. The user must have TaxonomyRights.ManageTermStore permission to use this method.

Examples

public void AddSiteCollectionAccess(Guid siteCollectionId)

See Also

Reference

Group Class

Group Members

Microsoft.SharePoint.Taxonomy Namespace

[M:Microsoft.SharePoint.Taxonomy.TermStore.CommitAll()]

IsSiteCollectionGroup

DeleteSiteCollectionAccess()

SiteCollectionAccessIds