Condividi tramite


RoleValidator<TRole>.ValidateAsync Metodo

Definizione

Convalida un ruolo come operazione asincrona.

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

Parametri

manager
RoleManager<TRole>

Gestione RoleManager<TRole> dell'archivio ruoli.

role
TRole

Ruolo da convalidare.

Restituisce

Oggetto Task<TResult> che rappresenta l'oggetto IdentityResult della convalida asincrona.

Implementazioni

Si applica a