Share via


RoleValidator<TRole>.ValidateAsync Method

Definition

Validates a role as an asynchronous operation.

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)

Parameters

manager
RoleManager<TRole>

The RoleManager<TRole> managing the role store.

role
TRole

The role to validate.

Returns

A Task<TResult> that represents the IdentityResult of the asynchronous validation.

Implements

Applies to