IUserRoleStore<TUser>.RemoveFromRoleAsync 方法

定义

从命名角色中删除指定的 user

public:
 System::Threading::Tasks::Task ^ RemoveFromRoleAsync(TUser user, System::String ^ roleName, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task RemoveFromRoleAsync (TUser user, string roleName, System.Threading.CancellationToken cancellationToken);
abstract member RemoveFromRoleAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function RemoveFromRoleAsync (user As TUser, roleName As String, cancellationToken As CancellationToken) As Task

参数

user
TUser

要从中删除命名角色的用户。

roleName
String

要删除的角色的名称。

cancellationToken
CancellationToken

CancellationToken,用于传播应取消操作的通知。

返回

表示异步操作的 Task

适用于