SPRole.RemoveGroup method

NOTE: This API is now obsolete.

Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the RemoveGroup method removed the specified group from the role and is maintained for backward compatibility.)

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

Syntax

'Declaration
<ObsoleteAttribute("Use the SPRoleDefinition class instead")> _
Public Sub RemoveGroup ( _
    group As SPGroup _
)
'Usage
Dim instance As SPRole
Dim group As SPGroup

instance.RemoveGroup(group)
[ObsoleteAttribute("Use the SPRoleDefinition class instead")]
public void RemoveGroup(
    SPGroup group
)

Parameters

See also

Reference

SPRole class

SPRole members

Microsoft.SharePoint namespace