共用方式為


RoleValidator<TRole>.ValidateAsync 方法

定義

將角色驗證為非同步作業。

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)

參數

manager
RoleManager<TRole>

管理 RoleManager<TRole> 角色存放區。

role
TRole

要驗證的角色。

傳回

Task<TResult> 表示 IdentityResult 非同步驗證的 。

實作

適用於