RoleValidator<TRole>.ValidateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.