'Declaration<ExtensionAttribute()> Public Shared Function RemoveSecurityRoleIds( _ ByVal nameAndPasswordUserManager As INameAndPasswordUserManager, _ ByVal userName As String, _ ByVal securityRoleIds As IEnumerable(Of String) _ ) As Boolean
'UsageDim nameAndPasswordUserManager As INameAndPasswordUserManager Dim userName As String Dim securityRoleIds As IEnumerable(Of String) Dim value As Boolean value = INameAndPasswordUserManagerExtension.RemoveSecurityRoleIds(nameAndPasswordUserManager, userName, securityRoleIds)
[Extension()] public static bool RemoveSecurityRoleIds( INameAndPasswordUserManager nameAndPasswordUserManager, string userName, IEnumerable<string> securityRoleIds )
[Extension()] public: static bool RemoveSecurityRoleIds( INameAndPasswordUserManager^ nameAndPasswordUserManager, String^ userName, IEnumerable<String^>^ securityRoleIds )
Parameters
- nameAndPasswordUserManager
- The user manager.
The value of this parameter cannot be
null(Nothingin Visual Basic). - userName
- The username of the user.
The value of this parameter cannot be
null(Nothingin Visual Basic). - securityRoleIds
- The security role IDs to remove.
The value of this parameter cannot be
null(Nothingin Visual Basic).The individual elements of the parameter value cannot be
null(Nothingin Visual Basic).
Return Value
true if all security role IDs were removed successfully; otherwise, false.