SPRole.AddGroup method
NOTE: This API is now obsolete.
請改用新的SPRoleDefinition和SPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, AddGroup方法指定的群組新增至角色和維護回溯相容性。)
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Use the SPRoleDefinition class instead")> _
Public Sub AddGroup ( _
group As SPGroup _
)
'用途
Dim instance As SPRole
Dim group As SPGroup
instance.AddGroup(group)
[ObsoleteAttribute("Use the SPRoleDefinition class instead")]
public void AddGroup(
SPGroup group
)
參數
- group
Type: Microsoft.SharePoint.SPGroup