UserManager<'TUser, 'TKey>.RemoveFromRolesAsync Method ('TKey, String[])
Remove user from multiple roles
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
public virtual Task<IdentityResult> RemoveFromRolesAsync(
TKey userId,
params string[] roles
)
public:
virtual Task<IdentityResult^>^ RemoveFromRolesAsync(
TKey userId,
... array<String^>^ roles
)
abstract RemoveFromRolesAsync :
userId:'TKey *
[<ParamArrayAttribute>] roles:string[] -> Task<IdentityResult>
override RemoveFromRolesAsync :
userId:'TKey *
[<ParamArrayAttribute>] roles:string[] -> Task<IdentityResult>
Public Overridable Function RemoveFromRolesAsync (
userId As TKey,
ParamArray roles As String()
) As Task(Of IdentityResult)
Parameters
userId
Type: TKeyuser id
roles
Type: System.String[]list of role names
Return Value
Type: System.Threading.Tasks.Task<IdentityResult>
See Also
UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
Return to top