Compartilhar via


SPClaimsAuthRoleProvider.RemoveUsersFromRoles Method

Removes the specified users from the specified roles for the application represented by the ApplicationName property.

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

Syntax

'Declaration
Public Overrides Sub RemoveUsersFromRoles ( _
    usernames As String(), _
    roleNames As String() _
)
'Usage
Dim instance As SPClaimsAuthRoleProvider
Dim usernames As String()
Dim roleNames As String()

instance.RemoveUsersFromRoles(usernames, _
    roleNames)
public override void RemoveUsersFromRoles(
    string[] usernames,
    string[] roleNames
)

Parameters

  • usernames
    Type: []

    The names of the users to remove from the roles.

  • roleNames
    Type: []

    The names of the roles from which the users are removed.

Remarks

This override removes the users from the roles in the claims-based role provider that is not an SPClaimsAuthRoleProvider and is used by the current application.

See Also

Reference

SPClaimsAuthRoleProvider Class

SPClaimsAuthRoleProvider Members

Microsoft.SharePoint.Administration.Claims Namespace