RoleManager<TRole>.GetRoleIdAsync(TRole) Méthode

Définition

Obtient l’ID du spécifié role.

public:
 virtual System::Threading::Tasks::Task<System::String ^> ^ GetRoleIdAsync(TRole role);
public virtual System.Threading.Tasks.Task<string> GetRoleIdAsync (TRole role);
abstract member GetRoleIdAsync : 'Role -> System.Threading.Tasks.Task<string>
override this.GetRoleIdAsync : 'Role -> System.Threading.Tasks.Task<string>
Public Overridable Function GetRoleIdAsync (role As TRole) As Task(Of String)

Paramètres

role
TRole

Rôle dont l’ID doit être récupéré.

Retours

Task qui représente l’opération asynchrone, contenant l’ID du spécifiérole.

S’applique à