Share via


IRoleValidator<TRole>.ValidateAsync Method

Definition

Validates a role as an asynchronous operation.

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ ValidateAsync(Microsoft::AspNetCore::Identity::RoleManager<TRole> ^ manager, TRole role);
public 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>
Public 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.

Applies to