共用方式為


SPWeb.AssociatedGroups property

取得與網站相關聯的群組清單。

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

Syntax

'宣告
Public ReadOnly Property AssociatedGroups As IList(Of SPGroup)
    Get
'用途
Dim instance As SPWeb
Dim value As IList(Of SPGroup)

value = instance.AssociatedGroups
public IList<SPGroup> AssociatedGroups { get; }

Property value

Type: System.Collections.Generic.IList<SPGroup>
System.Collections.IList介面,提供與網站相關聯的群組的清單。

請參閱

參照

SPWeb class

SPWeb members

Microsoft.SharePoint namespace