Share via


RoleManager<TRole>.RoleExistsAsync(String) Method

Definition

Gets a flag indicating whether the specified roleName exists.

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)

Parameters

roleName
String

The role name whose existence should be checked.

Returns

The Task that represents the asynchronous operation, containing true if the role name exists, otherwise false.

Applies to