RoleManager<TRole>.RoleExistsAsync(String) Méthode

Définition

Obtient un indicateur indiquant si le spécifié roleName existe.

public:
 virtual System::Threading::Tasks::Task<bool> ^ RoleExistsAsync(System::String ^ roleName);
public virtual System.Threading.Tasks.Task<bool> RoleExistsAsync (string roleName);
abstract member RoleExistsAsync : string -> System.Threading.Tasks.Task<bool>
override this.RoleExistsAsync : string -> System.Threading.Tasks.Task<bool>
Public Overridable Function RoleExistsAsync (roleName As String) As Task(Of Boolean)

Paramètres

roleName
String

Nom du rôle dont l’existence doit être vérifiée.

Retours

Task qui représente l’opération asynchrone, contenant true si le nom du rôle existe, sinon false.

S’applique à