共用方式為


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

適用於