RoleManager<TRole>.UpdateRoleAsync(TRole) 方法

定义

调用以在验证和更新规范化角色名称后更新角色。

protected:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ UpdateRoleAsync(TRole role);
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> UpdateRoleAsync (TRole role);
abstract member UpdateRoleAsync : 'Role -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.UpdateRoleAsync : 'Role -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Protected Overridable Function UpdateRoleAsync (role As TRole) As Task(Of IdentityResult)

参数

role
TRole

角色。

返回

操作是否成功。

适用于