다음을 통해 공유


UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.RemoveFromRoleAsync 메서드

정의

지정된 에서 지정된 normalizedRoleNameuser제거합니다.

public virtual System.Threading.Tasks.Task RemoveFromRoleAsync (TUser user, string normalizedRoleName, System.Threading.CancellationToken cancellationToken = default);
public override System.Threading.Tasks.Task RemoveFromRoleAsync (TUser user, string normalizedRoleName, System.Threading.CancellationToken cancellationToken = default);
abstract member RemoveFromRoleAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.RemoveFromRoleAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.RemoveFromRoleAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function RemoveFromRoleAsync (user As TUser, normalizedRoleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task
Public Overrides Function RemoveFromRoleAsync (user As TUser, normalizedRoleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task

매개 변수

user
TUser

역할을 제거할 사용자입니다.

normalizedRoleName
String

제거할 역할입니다.

cancellationToken
CancellationToken

작업을 취소해야 하는 알림을 전파하는 데 사용하는 CancellationToken입니다.

반환

비동기 작업을 나타내는 Task입니다.

구현

적용 대상