Compartilhar via


RoleManager<TRole>.CreateAsync(TRole) Método

Definição

Cria o especificado role no repositório de persistência.

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

Parâmetros

role
TRole

A função a ser criada.

Retornos

A Task que representa a operação assíncrona.

Aplica-se a