SPRoleCollection.Remove Method (String)
NOTE: This API is now obsolete.
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 Remove method removed the role with the specified name from the collection and is maintained for backward compatibility.)
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")> _
Public Sub Remove ( _
name As String _
)
'Usage
Dim instance As SPRoleCollection
Dim name As String
instance.Remove(name)
[ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")]
public void Remove(
string name
)
Parameters
name
Type: System.StringA string that contains the name.