Freigeben über


RoleManager<TRole>.SetRoleNameAsync(TRole, String) Methode

Definition

Legt den Namen des angegebenen rolefest.

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)

Parameter

role
TRole

Die Rolle, deren Name festgelegt werden soll.

name
String

Der Name, der festgelegt werden soll.

Gibt zurück

Das Task , das den asynchronen Vorgang darstellt, der den IdentityResult des Vorgangs enthält.

Gilt für: