SPWeb.AssociatedGroups Property

Gets a list of the groups that are associated with the website.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.InterfaceType)> _
Public ReadOnly Property AssociatedGroups As IList(Of SPGroup)
    Get
'Usage
Dim instance As SPWeb
Dim value As IList(Of SPGroup)

value = instance.AssociatedGroups
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.InterfaceType)]
public IList<SPGroup> AssociatedGroups { get; }

Property Value

Type: System.Collections.Generic.IList<SPGroup>
A System.Collections.IList interface that provides a list of the groups that are associated with the website.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace