Compartir a través de


RoleManager<TRole>.SetRoleNameAsync(TRole, String) Método

Definición

Establece el nombre del especificado role.

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ SetRoleNameAsync(TRole role, System::String ^ name);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> SetRoleNameAsync (TRole role, string name);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> SetRoleNameAsync (TRole role, string? name);
abstract member SetRoleNameAsync : 'Role * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.SetRoleNameAsync : 'Role * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function SetRoleNameAsync (role As TRole, name As String) As Task(Of IdentityResult)

Parámetros

role
TRole

Rol cuyo nombre se debe establecer.

name
String

Nombre que se establecerá.

Devoluciones

Task que representa la operación asincrónica, que contiene el IdentityResult objeto de la operación.

Se aplica a